I am displaying a list of properties on my GUI. All the properties
have combo boxes that shouldn't be allowed to be edited. At the minute
this works fine for bool values, see the code below for the Enabled
property:
[Category("Behaviour")]
[Description("Indicates if Button is Enabled or not")]
[BrowsableAttribute(true)]
public bool Enabled
The problem is that I have a few properties with custom types. When
being displayed these combo boxes allow the user to manually type into
the combo box. I do not want this to happen. Is there a property that
restricts the user from typing into the combo box? If not how should I
do this? An example of a property that allows the user to edit the
text in the combo box is below: Any ideas on how to prevent this?
[Browsable(true)]
[TypeConverter(typeof(StateConverter))]
[Description("Should Button be Hidden, Mandatory or Optional")]
public string State