Created On: 26 October 2012
Problem:
How do you set a combo box on a Windows Form to read-only? It is not one of the combo box properties like it is in the properties of a Textbox control.
Resolution:
You can disable the Combobox so that no data can be entered into the Textbox portion or the list portion of the control as follows:
set comboBox1::Enabled to false
If you want your users to be able to pick from the list but not enter a value in the Textbox then change the dropdownstyle property to dropdownlist.
set
comboBox1::DropDownStyle to type ComboBoxStyle::DropDownListIncident #2597108
Old KB# 36516
#COBOL
#VisualCOBOL
#netexpress