在Windows应用程序的运行时中未在Combobox中输入键盘数据 [英] Not entering keyboard data in Combobox in runtime in windows application
本文介绍了在Windows应用程序的运行时中未在Combobox中输入键盘数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,
我有一个组合框.我的要求是在运行时我不想输入键盘数据
在组合框内.有什么办法可以帮助我.
致谢
sir,
I have one combo box.My requirement is in run time I don''t want to enter keyboard data
inside Combo box. Is there any way please help me.
Thanks & Regards
推荐答案
将DropDownStyle
设置为DropDownList
SetDropDownStyle
toDropDownList
ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
参考: http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.dropdownstyle.aspx [
Ref:http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.dropdownstyle.aspx[^]
这篇关于在Windows应用程序的运行时中未在Combobox中输入键盘数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文