color help

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
 
M

Mark Rae

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

change background color 1
from KnownColor to Color 2
Pastel Colors? 3
Color 2
Getting BackColor 1
C# Web User Control help 3
path help please 1
add WebUserControls dynamically 2

Top