comboBox项目选择问题 [英] comboBox item selection problem
本文介绍了comboBox项目选择问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我的组合框有问题.
我希望只能从组合框中选择我输入的项目,并禁用用户输入的任何其他项目.
我该怎么办?
荣誉
neaS
hi to all,
i have a problem with combobox.
i want only my entered item should be selected from combobox and disable any other item entered by user.
how could i do that?
kudos
neaS
推荐答案
^ ]将指导您解决问题.
http://social.msdn.microsoft.com/Forums/en/winformsdesigner/thread/0004035e-4f1d-4b16-bd97-6123c209fe2f[^]Will guide you to solve your problem.
将DropDownStyle
设置为DropDownList
.
只读组合框 [
Set theDropDownStyle
toDropDownList
.
ReadOnly ComboBox[^] is an alternate solution.
这篇关于comboBox项目选择问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文