How do you find all rows of the same string in ListView?

TwoWing

Well-known member
Joined
Jan 6, 2006
Messages
71
Location
Near Portsmouth, England
Programming Experience
Beginner
Hello.

I have this code to find the first instance of a string in a ListView:-

VB.NET:
 Dim item1 As ListViewItem 
                                       = ListView1.FindItemWithText(TextBox1.Text)
        If Not (item1 Is Nothing) Then
            MessageBox.Show("Found  " & item1.Text)
        Else
            MessageBox.Show("Not in!")
        End If

    End Sub

Could someone please tell me how to program so that I can get the next instance of the string, and the next, and so on.
Thanks.
 
Back
Top