Paul,
I was re-reading and realized that you may have also meant you want the
full conversion to a html table cell color. That's like this:
Dim ColorTranslator As System.Drawing.ColorTranslator
Dim HtmlColor As String = ColorTranslator.ToHtml(System.Drawing.Color.Red)
If you are using a server side control for your table. Then you'll be able
to assign the color with the method I showed you previously. If you want
the actual RGB color (i.e. #FFFFFF) Then that's the code above.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
S. Justin Gengo said:
Paul,
System.Drawing.Color.FromArgb([argb color here])
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
PJ6 said:
I can't find any built-in way to do this. I'm assigning an HTML cell a
bgcolor and want to do it from a real color FromArgb... how do I get the
# string to assign it to the HTML cell? Or do I have to code a translator
up myself?
TIA,
Paul