C#Windows窗体中的只读组合框. [英] Read only Combo box in C# windows Form.
本文介绍了C#Windows窗体中的只读组合框.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在C#Windows窗体中使组合框为只读?
How do I make a combobox readonly in C# Windows forms?
推荐答案
对于组合框,如果考虑一下,这是一个奇怪的要求.难怪System.Windows.Forms
没有这样的功能.无论如何,请参见此CodeProject文章:
具有只读行为的组合框 [
For a combo box, this is a strange requirement, if you think about it. No wonder, there is no such feature ifSystem.Windows.Forms
. Anyway, please see this CodeProject article:
ComboBox with read only behavior[^].
—SA
术语只读"的使用令人困惑.如果您的目的是防止用户编辑文本,请使用DropDownStyle DropDownList.
请参见 ComboBoxStyle [
The use of the term readonly is confusing. If your aim is to prevent the user editing the text then use the DropDownStyle DropDownList.
See ComboBoxStyle[^]
Alan.
hii,
类似的线程是
只读ComboBox [
hii ,
similar thread is
Read only ComboBox[^]
这篇关于C#Windows窗体中的只读组合框.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文