Wednesday, October 8, 2008

Convert hex color to .net Color object

Convert hex color to .net Color object
The syntax for using the ColorTranslator to convert a hex value:
Color black = ColorTranslator.FromHtml("#000000");
Because it took me more than a minute to find, I decided to post it for future reference…

No comments: