views:

2977

answers:

1

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
This can also be set in the properties window of the designer.
Jeffrey
Boo Windows designer.
JustSmith