How do I dynamically change color in C# to a hex value?
asp.net, c#, user-interface
Solution
I would use the color translator as so:
var color = ColorTranslator.FromHtml("#FF1133");
Hope this helps.
Problem
I know how to set a control's BackColor dynamically in C# to a named color with a statement such as Label1.BackColor = Color.LightSteelBlue; ( using System.Drawing; ) But how do I convert a hex value into a System.Color , ie Label1.BackColor = "#B5C7DE