Articles in this section

How to programatically select a record in the dropdown that matches the typed text in WinForms ComboBox (ComboBoxAdv)?

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)
Access denied
Access denied