?
Solved

Color converter

Posted on 2008-11-11
2
Medium Priority
?
819 Views
Last Modified: 2012-06-21
Hi,

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

Regards, Neil
0
Comment
Question by:nenwmn
2 Comments
 
LVL 48

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 1000 total points
ID: 22928872
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
 
LVL 2

Author Closing Comment

by:nenwmn
ID: 31515438
Cheers Wayne, I nearly got there FromHtml("#" & l_Color.Substring(2))

Regards, Neil
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Integration Management Part 2

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question