Click here to Skip to main content
15,921,577 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to set common font size and color properties of all label + textbox controls in c#.net windows form.


plz provide solution as soon as posible..........
Posted
Comments
[no name] 4-Sep-13 6:03am    
Dont post single question multiple time.

1 solution

Create your own control classes and use them where ever needed

C#
class textbox :TextBox
   {
       protected override void InitLayout()
       {
           base.InitLayout();
           BackColor = Color.Beige;
       }
   }


C#
class lab :Label
   {
       protected override void InitLayout()
       {
           base.InitLayout();
           BackColor = Color.Beige;
       }
   }
 
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