Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hex colour values

Status
Not open for further replies.

AndyLee100

Technical User
Jun 26, 2003
174
GB
Why are the hex colour values in VB

&HBBGGRR Where B=Blue, G=Green and R=Red.

This has annoyed me this afternoon as I wrote a small application to convert RGB values to Hex and noticed it was always re-arranging the last 2 and first 2 hex values. I got more confused when looking on web sites that convert RGB to Hex and visa versa and they were giving different hex and RGB values to mine. Apparently HTML uses the more obvious format

&HRRGGBB

Very annoying!!!!!
 
Looks good, however I think I will write my own.

Thanks for that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top