Private Sub textBox1_KeyUp(sender As Object, e As KeyEventArgs) If textBox1.Text <> String.Empty Then cmbFile.SelectedValue = textBox1.Text End If End Sub
for (int i = 0; i <= listBox1.Items.Count; i++) { if (listBox1.Items[i].ToString() == textBox1.Text) { listBox1.SelectedIndex = i; break; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)