Home All Groups Group Topic Archive Search About
Author
12 Apr 2006 2:47 PM
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

Author
12 Apr 2006 2:57 PM
Kerry Moorman
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


Show quoteHide quote
"Gonzosez" wrote:

> 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
>
>
>