"Tee" schrieb
Need some help with listview, is there a function that can search the
listview for a specified string and return true/false ?
Private Function SearchListViewText( _
ByVal searchString As String) As Boolean
For Each lvi As ListViewItem In myListView.Items
If lvi.Text = searchString Then
Return True
Else
For Each lviSub As ListViewItem.ListViewSubItem In lvi.SubItems
If lviSub.Text = searchString Then
Return True
End If
Next
End If
Next
Return False
End Function
Cheers
Arne Janning