使组合框可编辑 [英] making a combo box editable
本文介绍了使组合框可编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使组合框在C#编辑应该从键盘,并从下拉接受输入,我想是被输入到下拉列表的文本追加。
< DIV CLASS =h2_lin>解决方案
您需要:
1)将AutoCompleteMode属性AutoCompleteMode.SuggestAppend
2)设置AutoCompleteSource属性AutoCompleteSource.CustomSource
3)AutoCompleteCustomSource属性设置为可能匹配的AutoCompleteStringCollection。
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.
解决方案
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.
这篇关于使组合框可编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文