I have a usercontrol that has several public properties. These properties automatically show up in the properties window of the VS2005 designer under the "Misc" category. Except two of the properties which are enumerations don't show up correctly.
The first on uses the following enum:
public enum VerticalControlAlign
{
Center,
Top,
Bottom
}
This does not show up in the designer at all.
The second uses this enum:
public enum AutoSizeMode
{
None,
KeepInControl
}
This one shows up, but the designer seems to think it's a bool and only shows True and False. And when you build a project using the controls it will say that it can't convert type bool to AutoSizeMode.
Also, these enums are declared globably to the Namespace, so they are accessible everywhere.
Any ideas?