Zexor
Well-known member
- Joined
- Nov 28, 2008
- Messages
- 520
- Programming Experience
- 3-5
How do i create an enum type for color ? Something like this
Since it only accept constant this won't work. Right now i am just using a function with a select case to translate the enum type to the color. But how do you do it directly?
VB.NET:
Enum colorType
CompanyA = Color.Red
CompanyB = Color.Blue
End Enum
Since it only accept constant this won't work. Right now i am just using a function with a select case to translate the enum type to the color. But how do you do it directly?