-1

Is there any way to set the default fonts preferences used in Visual Studio 2010 controls, such as in labels, textboxes, comboboxes and so on?

For example, all textboxes that I add to my form will have the font Arial, size 14, bold, backcolor yellow by default, without having to change them by hand.

I know I can select them all and change the font manually, but I would like to know if such an option is available.

2
  • Depending on which language(s)/platforms you are working, perhaps CSS? :) Sep 27, 2011 at 20:48
  • opsss .sorry... Iam using C# Sep 28, 2011 at 8:15

2 Answers 2

2

If you set the font and colors on the form before you add any objects(buttons,textbox...) the font and colors setting will be what you set on the form for the object. I hope this helps.

1
  • thanks for the hint ...still need some effective ways to auto change controls properties (î have textboxes, labels, listviews, ... i want to assign different colors and different font props. to them).... Sep 27, 2011 at 12:06
0

If you want to be able to mix fonts, styles and colors on the same form, subclass the controls you want to use and assign whatever fonts and colors are required in the constructor.

1
  • thanks for the answer..good idea indeed, still will make me more work than doing it by hand ...but thanks for the hint Sep 27, 2011 at 12:06

Not the answer you're looking for? Browse other questions tagged .