listview usage

  • Thread starter Thread starter Gonzosez
  • Start date Start date
G

Gonzosez

I have an application that creates a list view.
I want the user to be able to select several items.
How do I retrieve then information for several selections.
I can do it for 1 but not several.
Also the list has check box once the user has selected an item I want the
check box checked. I do not want the user to be able to check the box.
thanks
 
Gonzosez,

The listview control keeps track of selected items in its SelectedItems
property.

You can use a For Each loop to get each selected item. For example:

For Each item As ListViewItem In lvwEmployees.SelectedItems
MsgBox(item.Text)
Next

Kerry Moorman
 
Back
Top