ListView Control in Visual Basic 6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AaronL
    New Member
    • Jan 2007
    • 99

    ListView Control in Visual Basic 6

    Hello everyone,

    I am having tons of issues with the ListView control in Visual Basic 6.0.

    I figured out how to add column headers and add items and subitems, however what I would like to do is be able to edit the subitems at runtime. You can edit the first field in my program but if you click on the second column etc... you can't edit those. Can someone explain this to me? My brain is going to explode I don't know why they make this control so difficult to use.

    Thanks!
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    kindly post the code that you are working on ?

    Comment

    • AaronL
      New Member
      • Jan 2007
      • 99

      #3
      The only code is what enters the data

      Code:
      'Load webpage file data
      Set WPLI = wplvw.ListItems.Add(, , "Google")
          WPLI.SubItems(1) = "Yes"
          WPLI.SubItems(2) = "www.google.com"
          WPLI.SubItems(3) = "11:00:00"
          WPLI.SubItems(4) = "5 mins"
          WPLI.SubItems(5) = "Yes"
      At runtime you can only edit the first field aka the label and not the subitems

      Comment

      • CyberSoftHari
        Recognized Expert Contributor
        • Sep 2007
        • 488

        #4
        use controls for your requirements.
        listview is for view, select and, checks rows for data operations.
        you can use 'DATA GRID' to edit column, or you can programme with flex grid and text box.

        Comment

        • AaronL
          New Member
          • Jan 2007
          • 99

          #5
          I was afraid of that, thanks...

          Comment

          Working...