Color converter

Posted on 2008-11-11
Last Modified: 2012-06-21

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

Regards, Neil
Question by:nenwmn
    LVL 46

    Accepted Solution

    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.


    LVL 2

    Author Closing Comment

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

    Regards, Neil

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
    For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
    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.…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    733 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now