Hi all. I have searched the forum with no luck, hopefully you can help me.
I have listview which contains around 500 different items.
I have a search function which will find any item in this listview and set its background colour to blue.
My problem is I that I want the listview to automatically scroll to the selected item, how can I do this.
ThanksCode:For i_Rows = 0 To Me.ListView1.Items.Count - 1 If Me.ListView1.Items(i_Rows).SubItems(2).Text = s_Search_Text Then Me.ListView1.Items(i_Rows).BackColor = Color.Blue Me.ListView1.Select() Exit For End If Next




Reply With Quote