Category / Section
How to programatically select a record in the dropdown that matches the typed text in WinForms ComboBox (ComboBoxAdv)?
1 min read
Select the record
You can handle DropDown event of comboBoxAdv1 and set as shown in the following code snippet.
C#
private void comboBoxAdv1_DropDown(object sender, System.EventArgs e) { this.comboBoxAdv1.ListBox.SelectedItem=this.comboBoxAdv1.TextBox.Text ; }
VB
Private Sub comboBoxAdv1_DropDown(ByVal sender As Object, ByVal e As System.EventArgs) Me.comboBoxAdv1.ListBox.SelectedItem =Me.comboBoxAdv1.TextBox.Text End Sub