Alright, I did a search on vb forums and found something that helped me out:
vb Code:
Dim itmX As ListViewItem = lstStudents.FindItemWithText(tstSearch.Text, False, 0) If Not itmX Is Nothing Then lstStudents.Focus() itmX.Selected = True lstStudents.Items(itmX.Index).Selected = True itmX.EnsureVisible() End If
So here's the problem know. When have more than 1 of the same text (say, Last Name or First Name) Then it will only do the very last item, instead of starting with the FIRST item & then when I click the search Button again, it will go to the next item in the List with that Text.




Reply With Quote