Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
i need to apply custom color to form as background color in windows application. how can apply this.they given bgcolor as properties but they have limited colors
Posted
Comments
Kenneth Haugland 30-Jul-12 7:47am    
You can set rgb in colors? or solidcolorbrush
Manohar Khillare 30-Jul-12 7:56am    
how can i set rgb
Sergey Alexandrovich Kryukov 30-Jul-12 19:43pm    
What is broken? MSDN? Google? Bing?
--SA

Here is a link tat lets you set an arbetrary color on your form:
http://www.dotnetperls.com/colordialog[^]

To set the color in RBG you simply type:
C#
this.backcolor = Color.FromArgb(155, 155, 155);
 
Share this answer
 
Comments
Manohar Khillare 30-Jul-12 8:22am    
thanks Kenneth Haugland
set form property
Backcolor=select color from property;
OR Like
C#
BackColor=255, 192, 128


In Window application Form has Property named BackColor set it's Values.
BackColor Provide select color name or color code or custom .
you can select as your favorites Color..

Thank You.
 
Share this answer
 
v2
Comments
Manohar Khillare 30-Jul-12 8:05am    
it showing me error
Try the Color.FromArgb Method from Code.
From Properties, you have different Tabs in the Selection Drop Down Menu.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900