Results 1 to 3 of 3

Thread: Using ListView control

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 1999
    Posts
    321

    Post

    How can I read something in another column than number 1?

    ListView1.Selected.Text gives me what's written in the first column...

    Does anyone know how I can find ut what's inside the second and third?

  2. #2
    Member
    Join Date
    Jan 1999
    Location
    Garden Grove, CA, Orange
    Posts
    55

    Post

    ListView1.SelectedItem.ListSubItems(1).Text


    Joon

  3. #3
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261

    Post

    try :

    Text1 = ListView1.SelectedItem.SubItems(1)
    in a form with a listview and a textbox , this will put what ever in the second column
    in the textbox ... to read the third column :
    Text1 = ListView1.SelectedItem.SubItems(2)
    etc ...



    ------------------
    - regards -
    - razzaj -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width