I ran into a problem that I think should be fairly common and wondered if anyone could help.
I am creating a simple Windows form (using VB.NET) for a friend that I can use at work. His company has about 10 specific color schemes (they have a list of RGB values) that they use for the company logo, website, etc.
I want to follow this color scheme in my application and, to simplify the development, I would like to build an enumeration of these colors in order to avoid hard coding the RBG value for each label, panel, etc.
My initial thought was as follows:
Enum ColorTypes CompanyDarkBlue = Color.FromArgB(0,56,147) CompanyBlue = Color.FromArgB(0,111,198) CompanyLightBlue = Color.FromArgB(0,145,201) End Enum
However, it is not as simple as a constant. I looked around the Internet and I found an example of how to achieve what I need, but it seemed too complicated for what seems like a fairly common requirement for application development.
What do you think is the best way to solve this problem?
Thank you so much
Alex
source share