Hi all, I've created an user control with an 'Enum' property in a windows
lkibrary (dll), like this

public enum ComboBoxTypes

{

Null,

Task,

Content,

Language,

Format,

SectorType

}



private ComboBoxTypes comboBoxType = ComboBoxTypes.Null; // default

public ComboBoxTypes ComboBoxType

{

get { return comboBoxType; }

set

{

comboBoxType = value;

}

}



So I've created new WinApplication and I've try to add my control to
mainform, and by design set ComboBoxType property

Now everytime I try to open mainform in design mode message "The variable
'ComboBoxTypes' is either undeclared or was never assigned." appears and
inside

InitializeComponent() function mycontrol.ComboBoxType resets to
ComboBoxTypes.Null

Why???



Thanks al lot

Edo