Home > other >  Setting visual studio 2022 win form controls default font
Setting visual studio 2022 win form controls default font

Time:10-06

The default font for C# win form control is Microsoft Sans Serif, 8.25pt. This means that whenever a control is added to a form - this is the font setting the control gets.

I checked at VS menus: Tools -> Options -> Environment -> Fonts and Colors, but I didn't find setting for that.

Please advise

CodePudding user response:

VS settings are related to the IDE and not the project.

If you want to have "default" properties when you drag and drop a control, you just have to set the wanted property on the parent control, and the child will inherit from it.

So, basically, just set the font type and size on the form before dropping controls on it

  • Related