RGB code to color Name

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top