开发者

c# winForms how to filter combobox

开发者 https://www.devze.com 2023-03-21 13:45 出处:网络
I have combobox which dropDownStyle is dropDown, datas开发者_JAVA百科ource is arraylist . When user input value in combo box i want to filter and show in list only that value which is look like input

I have combobox which dropDownStyle is dropDown, datas开发者_JAVA百科ource 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


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

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

精彩评论

暂无评论...
验证码 换一张
取 消