Color converter

Hi,

Is it possibe to take the string ff99ccff and convert it back to a colour.

Regards, Neil
LVL 2
nenwmnAsked:
Who is Participating?
 
Wayne Taylor (webtubbs)Connect With a Mentor Commented:
Hi nenwmn,

Use the ColorTranslator....

    Dim MyColor As Color = Drawing.ColorTranslator.FromHtml("#ff99ccff")

Be sure to inculde the hash (#) at the beginning of the string.

Regards,

Wayne
0
 
nenwmnAuthor Commented:
Cheers Wayne, I nearly got there FromHtml("#" & l_Color.Substring(2))

Regards, Neil
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.