Listview Vb

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parkavi
    New Member
    • Mar 2007
    • 11

    #1

    Listview Vb

    hi all...

    i am struggling to select an item of ListView in VB.....
    in my project, i have to display Content of first Column in a textbox in the same form when i select the fullrow at a run time....

    plz help me.....



    thanx in advance
  • parkavi
    New Member
    • Mar 2007
    • 11

    #2
    Listview Vb

    hi all...

    i am struggling to select an item of ListView in VB.....
    in my project, i have to display Content of first Column of listview in a textbox in the same form when i select the fullrow at a run time....

    plz help me.....



    thanx in advance

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by parkavi
      hi all...

      i am struggling to select an item of ListView in VB.....
      in my project, i have to display Content of first Column in a textbox in the same form when i select the fullrow at a run time....

      plz help me.....



      thanx in advance
      1.) Do not post questions in the Articles section.
      2.) Do not double post.

      Moved to forum section and merged threads.

      Comment

      • pureenhanoi
        New Member
        • Mar 2007
        • 175

        #4
        Originally posted by parkavi
        hi all...

        i am struggling to select an item of ListView in VB.....
        in my project, i have to display Content of first Column of listview in a textbox in the same form when i select the fullrow at a run time....

        plz help me.....



        thanx in advance
        use flowing code
        Code:
        Private Sub ListView1_ItemClick(ByVal Item As MSComctlLib.ListItem)
        'first column
        Text1.Text = Item.Text
        'second column
        Text2.Text = Item.SubItems(1)
        'third column
        Text3.Text = Item.SubItems(2)
        'and so on...
        End Sub

        Comment

        Working...