AncientTiger
Programmer
I've searched and searched today and I've seen a LOT of examples on how to convert HEX to VB RGB, but I'm not finding any advise on the reverse. Wondering if it's even possible
Here's what I'm trying to do: I have a form with a label and a commondialog control for selecting/changing the backcolor on the label. I'm wanting to take that chosen backcolor, which comes out as a decimal value, and convert that to a HTML HEX color value.
So, for the color VBGreen, I get this:
VB COLOR VALUE: 65280
AFTER CONVERSION USING THE HEX COMMAND: FF00 ' ( EXA: THISCOLOR= HEX(MYVBCOLOR) )
Now, that's NOT a valid HTML color value. If plugged that into a webpage, it would be pure RED, not green.
Any suggestions?
------------------------------------
Over 30 years of programming, and still learning every day!
Here's what I'm trying to do: I have a form with a label and a commondialog control for selecting/changing the backcolor on the label. I'm wanting to take that chosen backcolor, which comes out as a decimal value, and convert that to a HTML HEX color value.
So, for the color VBGreen, I get this:
VB COLOR VALUE: 65280
AFTER CONVERSION USING THE HEX COMMAND: FF00 ' ( EXA: THISCOLOR= HEX(MYVBCOLOR) )
Now, that's NOT a valid HTML color value. If plugged that into a webpage, it would be pure RED, not green.
Any suggestions?
------------------------------------
Over 30 years of programming, and still learning every day!