Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. mscomctl - whats is it? its giving problem in upgrading VB6 to VB.Net

mscomctl - whats is it? its giving problem in upgrading VB6 to VB.Net

Scheduled Pinned Locked Moved Visual Basic
questionhelpcsharp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sarat
    wrote on last edited by
    #1

    what is mscomctl? in the following like of code it complains as "mscomctl" is not delcalred when i upgrade mt VB6 project to VB.Net ...how can i resolve the issue here is the code: lstToSelect = lstProperties.FindItemWithText(Mid(tvwProperties.SelectedNode.Name, 2, Len(tvwProperties.SelectedNode.Name)), True, 1, mscomctl.ListFindItemHowConstants.lvwWhole)

    C 1 Reply Last reply
    0
    • S sarat

      what is mscomctl? in the following like of code it complains as "mscomctl" is not delcalred when i upgrade mt VB6 project to VB.Net ...how can i resolve the issue here is the code: lstToSelect = lstProperties.FindItemWithText(Mid(tvwProperties.SelectedNode.Name, 2, Len(tvwProperties.SelectedNode.Name)), True, 1, mscomctl.ListFindItemHowConstants.lvwWhole)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      MSCommonControls. The intelligent thing to do here would be to google the command that causes the problem. Like I did: http://msdn2.microsoft.com/en-us/library/system.windows.forms.listview.finditemwithtext.aspx[^] Doesn't look like that constant is supported in .NET in any way.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      S 1 Reply Last reply
      0
      • C Christian Graus

        MSCommonControls. The intelligent thing to do here would be to google the command that causes the problem. Like I did: http://msdn2.microsoft.com/en-us/library/system.windows.forms.listview.finditemwithtext.aspx[^] Doesn't look like that constant is supported in .NET in any way.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        S Offline
        S Offline
        sarat
        wrote on last edited by
        #3

        Thanx for the reply Graus I am new to VB ok here the problem is in VB6 the code is like this : Set lstToSelect = lstProperties.FindItem(Mid(tvwProperties.SelectedItem.Key, 2, Len(tvwProperties.SelectedItem.Key)), 0, 1, lvwWhole) and the upgrade vizard changed the code to lstToSelect = lstProperties.FindItemWithText(Mid(tvwProperties.SelectedNode.Name, 2, Len(tvwProperties.SelectedNode.Name)), True, 1, mscomctl.ListFindItemHowConstants.lvwWhole) now it complains " mscomctl " is not declared how can i resolve the issue

        S 1 Reply Last reply
        0
        • S sarat

          Thanx for the reply Graus I am new to VB ok here the problem is in VB6 the code is like this : Set lstToSelect = lstProperties.FindItem(Mid(tvwProperties.SelectedItem.Key, 2, Len(tvwProperties.SelectedItem.Key)), 0, 1, lvwWhole) and the upgrade vizard changed the code to lstToSelect = lstProperties.FindItemWithText(Mid(tvwProperties.SelectedNode.Name, 2, Len(tvwProperties.SelectedNode.Name)), True, 1, mscomctl.ListFindItemHowConstants.lvwWhole) now it complains " mscomctl " is not declared how can i resolve the issue

          S Offline
          S Offline
          sarat
          wrote on last edited by
          #4

          Thanx Graus it got solved with the link u have given me

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups