Articles in this section
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

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied