color help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
i'm in the code-behind trying to give a BackColor a color. The color I need
is in hex (#f8f8ff). Could someone please show me the syntax? I don't see
anything I can assign to under System.Drawing.Color...

thanks,
rodchar
 
i'm in the code-behind trying to give a BackColor a color. The color I
need
is in hex (#f8f8ff). Could someone please show me the syntax? I don't see
anything I can assign to under System.Drawing.Color...

<WebControl>.BackColor = ColorTranslator.FromHtml("#F8F8FF");
 
Back
Top