只读组合框 [英] Readonly ComboBox
本文介绍了只读组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用textbox.Readonly=true
来拥有一个只读文本框.
组合框怎么样?
I use textbox.Readonly=true
for having a Readonly textbox.
How about a Combobox? How can I have readonly ComboBOx without "hiding" or using "enable=false"?
推荐答案
别无所求. codeproject.com/KB/combobox/csReadonlyComboBox.aspx>只读ComboBox [ ^ ]
Look no further than Read only ComboBox[^]
没有针对ComboBox的直接属性,如"ReadOnly".
请看这篇文章:只读ComboBox [
No there is no direct property like ''ReadOnly'' for ComboBox.
Have a look at this article for it: Read only ComboBox[^]
将ComboBox.DropDownStyle属性设置为DropDownList.
Set the ComboBox.DropDownStyle property to DropDownList.
这篇关于只读组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文