RGB code to color Name

G

Guest

Hello,

I want to specify a forma's backcolor at runtime. How can I know the
color from it's color code. E.g. I want to give color (192,192,255) as form's
back color. for this I want to use, frm.backcolor=color.colorname. How can I
know the exact colorname of the specified RGB color code?

Thanks in advance.

--RbanBph
 
M

Maqsood Ahmed

Hello,
you can use Color.FromArgb(192,192,255) instead. It'll return the Color
you want to set as form's background

HTH, Cheers

Maqsood Ahmed [MCP,C#]
Kolachi Advanced Technologies
http://www.kolachi.net
 

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

Top