What's the correct approach for applying font size in WinForms application in vb.net

Hakan
Hakan used Ask the Experts™
on
Hello I'm troubling with my application's font size. I don't know how to handle for different screen resoulitons and most of them i set with the Visual Studio designer.

I'm trying to set font Segoe UI and with 10pt but in different controls the size seems different even the designer properties are same.

Now i'd like to clarify, what's the experts in ux approach

set the font in designer or runtime?
using point or pixels ?
How do you handle Microsoft Font Size(Display Settings) and screen resouliton.
Any help would be greateful.

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior .Net Consultant
Top Expert 2016
Commented:
fonts should be set at design time. otherwise, you might end up with controls not fully displayed at runtime.

you normally set the font on the form itself to what you need to be the default and then add controls.

you can also select all controls on your form and set the Font properties for all of them at once (but some controls does not behave correctly).
Top Expert 2016

Commented:
If you want all of the new goodness then you should be using wpf for your forms and not using winforms.

Author

Commented:
I didnt have experience with WPF. Is it easy to handle from WinForms to WPF. I mean all control elements and events available?
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
WPF is similar but also a different beast!

Author

Commented:
The beast in good meaning :) ?
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
You can create better UI (ie more graphical) by using WPF. But usually, when people makes the move to WPF, they also make the move to some paradigm like MVVM do decouple the UI from the business logic.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial