Question : vb.net select text within a listbox
Answered by : turner-kindred
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged Dim i As Integer = ListBox1.FindString(TextBox1.Text) ListBox1.SelectedIndex = i If TextBox1.Text = "" Then ListBox1.SelectedIndex = -1 End If
End Sub
Source : https://stackoverflow.com/questions/11418685/vb-net-listbox-search | Last Update : Wed, 09 Mar 22