Me and my friend are making a html editor, just for fun, and we can't get out of this problem:

If we take the commondialog hexidecimal color, how can you convert it to html hex like #FF4455?
I tried hex$(color) where color is a long, the commondialog color returned..
But however, that didn't work. It looks like vb is deleting the 0(s), and only printing F(s), 8(s) and 0(s)..does anyone know how to solve this problem?

Thanks.