Does anyone know a speedy way of determining the selected items in a ListView Control? I have a ListView that is populated with more than 6000 items and it takes too long to iterate through the entire list. There must be a faster way.
Code:
Dim intItem As Integer
Dim intCount as Integer

intCount = vewItems.ListItems.Count
For intItem = intCount To 0 Step -1
    If vewItems.Listitems(intItem).Selected Then
        vewItems.ListItems.Remove (intItem)
    End If
Next
This works but is very slow. Still working on it.