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");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top