Vb Net Select Text Within A Listbox

[Solved] Vb Net Select Text Within A Listbox | Vb - Code Explorer | yomemimo.com
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

Answers related to vb net select text within a listbox

Code Explorer Popular Question For Vb