Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

making a combo box editable

Tags:

c#

combobox

I want make the combo box editable in c# that should accept input from keyboard and from the drop-down and I want to append the text that is entered to the drop-down list.


1 Answers

You need to:

1) Set the AutoCompleteMode property to AutoCompleteMode.SuggestAppend

2) Set the AutoCompleteSource property to AutoCompleteSource.CustomSource

3) Set the AutoCompleteCustomSource property to an AutoCompleteStringCollection of your possible matches.

like image 99
Nicholas Head Avatar answered Mar 08 '26 21:03

Nicholas Head