Color

G

Guest

I created a TableCell object and I want to set the BackColor property to
#F7DFB5. How do I do this? It requires System.Drawing.Color, but Color has
no constructor so I a bit perplexed.

Thanks in advance for your assistance
 
S

Siva M

Try Color.FromRgb (0xf7, 0xdf, 0xb5)

I created a TableCell object and I want to set the BackColor property to
#F7DFB5. How do I do this? It requires System.Drawing.Color, but Color has
no constructor so I a bit perplexed.

Thanks in advance for your assistance
 
R

Rob Schieber

Jim said:
I created a TableCell object and I want to set the BackColor property to
#F7DFB5. How do I do this? It requires System.Drawing.Color, but Color has
no constructor so I a bit perplexed.

Thanks in advance for your assistance

Hi Jim,

Try Color myColor = ColorTranslator.FromHtml("#F7DFB5");
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top