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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top