I convert the hex color number to decimal using the manual method.
In design view of the form, I change the color using the color picker.
Then I write down the RGB values from the Custom Tab.
If I will be using the color in many places in the code, I convert the RGB values to a Long using
Code:
Dim SomeVariable as Long
Somevariable = RGB(178,169,122) '(<= #B2A97A)
msgbox SomeVariable (8038834) 'so I can see the number
I write down the value, then set a constant
Code:
Const GrayedOut as Long = 8038834
.
.
Me.Label17.ForeColor = GrayedOut
But I'm going to save the code example
Thanks Linq