Results 1 to 2 of 2

Thread: Listview Selected Item

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    Pennsylvania
    Posts
    133

    Listview Selected Item

    How do I get the index of the currently selected Item in a vb.net listview?

  2. #2
    Member
    Join Date
    Jul 2002
    Posts
    49
    As long as only one item is selected then

    ListView1.SelectedItems(0).Index

    will give you the one that is selected. If there are more than one selected then ListView1.SelectedItems(0).Index will give you the first one, ListView1.SelectedItems(1).Index will give you the second one and so on.

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