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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

color codes for Html

Status
Not open for further replies.

jbrowne

Programmer
Feb 1, 2000
182
IE
Hi,

I am trying to use the common dialog control in VB to show the user the color pallete. They then choose a color. My problem is that I need to convert RGB value returned to the equivilent hexadecimal value for use on HTML pages. Can anyone tell me if there is a handy way to do this.

Thanks in advance
John B
 
Use the hex function

"#" & hex(red) & hex(green) & hex(blue)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top