"Stylesheets" in win forms

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hi all

This may seems like an od subject.
I would like to know if you can apply some sort of "stylesheet" to winforms?
like in ASP.NET you can define .css files to determine your look and feel of
your HTML web pages. the obvious advantage of using HTML stylesheets is that
all your buttons, drop downs, etc all look the same. As well as if you wish
to change something to the general look and feel of the web site, you could
just change the css and the entire web site would change.

I would like to know if something similar exists for winforms? so you have
10 forms in your application and each form has, on average, about 10
buttons. all forms must look the same, and all buttons must look the same,
and their "look and feel" controlled by one central location...

any suggestions or solutions?

Thanks
Jason
 
maintain the attributes of the controls in the central location like a
config file or an xml file.
you can read those attributes and set the properties runtime.

Av.
 
so in otherwords, read my styles from the central location and apply them to
my buttons, etc on formload?
this is a good option...
is there another way?
 
Jason,

Another way to do this would be to derive from the windows forms
controls, setting the defaults to what you want them to be.

Hope this helps.
 
Back
Top