Irakli Lekishvili
Irakli Lekishvili

Reputation: 34158

c# winForms how to filter combobox

I have combobox which dropDownStyle is dropDown, datasource is arraylist . When user input value in combo box i want to filter and show in list only that value which is look like inputed string.

please help

Upvotes: 0

Views: 5293

Answers (1)

V4Vendetta
V4Vendetta

Reputation: 38210

You can set the following properties on ComboBox to get the autocomplete feature

comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems;

Upvotes: 4

Related Questions