While exploring the deeps of .NET I found this wonderful class....
The System.Drawing.ColorTranslator class.
If I'd only known earlier.... This class has a static method that converts a System.Drawing.Color to the Html notation of that color,
and another to convert it back.
These methods are respectively:
string colorHtml = System.Drawing.ColorTranslator.ToHtml(Color.LightBlue);
System.Drawing.Color netColor = System.Drawing.ColorTranslator.FromHtml("#F3E0F7");
As I've said before, If I'd only known earlier.... These nice secrets of .NET can be very usefull....
But you have to know about them. Otherwise you start making these kind of functions yourself.