K
Ken Cox [Microsoft MVP]
Hi Trevor,
You want ColorTranslator
Dim htmlColor As String = "#ff11aa"
Dim myColor As Color = ColorTranslator.FromHtml(htmlColor)
Label1.ForeColor = myColor
http://msdn.microsoft.com/library/d...mDrawingColorTranslatorClassFromHtmlTopic.asp
Does this help?
Ken
MVP [ASP.NET]
Hi,
I have a hex color and I need to convert it to a Color class. How do i do
this? thanks
-trevor
You want ColorTranslator
Dim htmlColor As String = "#ff11aa"
Dim myColor As Color = ColorTranslator.FromHtml(htmlColor)
Label1.ForeColor = myColor
http://msdn.microsoft.com/library/d...mDrawingColorTranslatorClassFromHtmlTopic.asp
Does this help?
Ken
MVP [ASP.NET]
Hi,
I have a hex color and I need to convert it to a Color class. How do i do
this? thanks
-trevor