• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

Selected item in List View

How could I get the seleceted item(s) from a list view control as well which event is fired when an item is selected?
0
askmeaks
Asked:
askmeaks
1 Solution
 
JR2003Commented:
Private Function ProcessSelected()

Dim i As Long

With ListView1.ListItems
    For i = 1 To .Count
        If .Item(i).Selected Then
            'Put your code here for the selected item
        End If
    Next i
End With

End Function


The ItemClick event is fired when an item is selected.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now