VB.NET:如何美元的一个ComboBox p $ pvent用户输入 [英] VB.NET: how to prevent user input in a ComboBox
本文介绍了VB.NET:如何美元的一个ComboBox p $ pvent用户输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在一个ComboBox只有一个中所定义的列表中的项目做你prevent用户输入可以由用户来选择
How do you prevent user input in a ComboBox to that only one of the items in the defined list can be selected by the user?
推荐答案
设置组合框为DropDownList的DropDownStyle属性。这将允许唯一项目中所选择的列表并且将不允许任何自由形式的用户输入。
Set the "DropDownStyle" property of the combobox to DropDownList. This will allow only items in the list to be selected and will not allow any free-form user input.
这篇关于VB.NET:如何美元的一个ComboBox p $ pvent用户输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文