CodeItBetter Programming Another VB Programming Blog

How to identify the selected items in listview

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'Controls - How to identify the selected items in listview
'You need to use the Selected Property to determine which Items are Selected.

Private Sub Command1_Click()
    Dim I As Integer
    With ListView1.ListItems
        For I = 1 To .Count
            If .Item(I).Selected Then
                'Item is Selected,
                'Perform Whatever to this Item Here.
            End If
        Next
    End With
End Sub
Filed under: Controls Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.