This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17613|Reply: 0

[Communication] comboBox set to read-only (select-only)

[Copy link]
Posted on 1/28/2015 4:48:15 PM | | |
The ComboBox control displays a text box edit field combined with a ListBox, allowing the user to select items from the list or enter new text.

If the user does not need to enter new text, it can be set to read-only, strictly speaking, it should be select-only.

comboBox is set to read-only, not with the ReadOnly property, comboBox does not have this property,

Instead, you can set the DropDownStyle to DropDownList, using the following statement




Previous:SQL Server to query the user's object permissions and roles
Next:C# winform prevents sql injection
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com