Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
is there any possible way to set all control properties using one file or using some coding statements. I mean to to set all label to one font or textboxes to one size etc etc. i have to set layout of many form i want to save my time and efforts just like we save using CSS in web application. i can do it by going to each form but i don't want to do this. is there any shortcut avlaiable like CSS to control winform layout , design settings. What is the way to do this task, i want to apply uni formating to my WinForms that why i required to set layout of each and every form
Posted
Updated 3-May-14 4:08am
v3

1 solution

The way I see it, you have 2 options:

  • Iterate through all the controls of a specific type in a form and perform the necessary modifications.

    -or-

  • Subclass from TextBox and use your derived class to behave as required.  Then, create instances of your subclass in your form.
/ravi
 
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