I have some elements in a ComboBox (WinForms with C#). I want their content to be static so that a user cannot change the values inside when the application is ran. I also do not want the user adding new values to the ComboBox
+10
A:
Use the ComboStyle property.
comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
Dan Walker
2009-02-28 18:40:28
This can also be set in the properties window of the designer.
Jeffrey
2009-02-28 18:43:44
Boo Windows designer.
JustSmith
2010-05-03 20:15:02