Stworzyłem dynamicznie HyperLink
. Chcę zmienić kolor, dodając kod koloru.ForeColor z kolorami kodów
HyperLink hpl = new HyperLink();
hpl.Text = "SomeText";
hpl.ForeColor = "#5BB1E6";
//Cannot implicitly convert type 'string' to 'System.Drawing.Color
Ale nie mogę.
Jak dodać kolorowe kody do ForeColor
?
Czy to możliwe?
Może trzeba [ 'ColorTranslator.FromHtml'] (http: //msdn.microsof t.com/en-us/library/system.drawing.colortranslator.fromht.aspx) – V4Vendetta
Dzięki Mr. @ V4Vendetta – OammieR