Finding items in a LISTVIEW Control
Does anyone know how to find an item in a LISTVIEW control?
In VB6 there was a FINDITEM method that you could use. I dont see that method in .NET
In VB6 you could do this:
Set itmFound = lstConnections.FindItem(Name, lvwSubItem)
If itmFound Is Nothing Then
'do nothing
Else
lstConnections.ListItems.add (name)
End If
In vb.net????
I could loop through all the items.....yuch...any ideas?
Looping I guess it is......
I was hoping for a slicker way but I guess looping will have to suffice. Thanks for your help!