Click here to Skip to main content
15,887,415 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
hi friends,
I'm making a project on windows aplication in which I what to change color of my whole application through single change. how can I handle this kind of problem because there is no property for color like in asp.net according to my knowledge. please help me soon.
Posted
Updated 24-Nov-11 8:03am
v2
Comments
[no name] 24-Nov-11 14:04pm    
Removed JavaScript tag as this clearly has nothing to do with it.

I think what you mean is to "skin" your WinForm. We are achieving this using the DeveloperExpress SkinFramework (commercial product) with our own custom colors. Here is a link:
http://www.devexpress.com/Products/NET/Controls/WinForms/Skins/[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 24-Nov-11 14:43pm    
My 5 for the good advice, but I think this is not what OP wants.
Please see my solution, I explained it.
--SA
RaviRanjanKr 24-Nov-11 16:18pm    
My 5+ for such a nice link.
Projects do not have colors, the question makes no sense. :-)

Application… and the color of the application also makes no sense. Colors start from a Form, with System.Window.Forms. Indeed, it you set, say, BackColor for a form, this color will be inherited hierarchically by controls. See:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.aspx[^], the "Remark" section, about AmbientProperties:
http://msdn.microsoft.com/en-us/library/system.windows.forms.ambientproperties.aspx[^].

I think this is what you need.

—SA
 
Share this answer
 
Comments
JF2015 24-Nov-11 15:02pm    
Yeah, maybe you are right and this is what the OP means. 5ed
Sergey Alexandrovich Kryukov 24-Nov-11 15:53pm    
Yes, but skins is a better idea in long run.
Thank you,
--SA

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