Winform scaling problem

P

Peter Morris

There's a guy at work who we all just thought was visually disabled or
something. Whenever he creates Forms they look terrible, lables too short
for their text etc. We recently discovered it is actually something to do
with scaling (well, except for the crappy alignment, for that he needs
slapping.)

When he creates a form 1000 wide and someone else opens that form it scales
down to about 750. If we set Scaling to None on the form it doesn't happen
any more. Now setting scaling on everything isn't what we'd like to do. I
was wondering if anyone might know what it is on his computer that is
affecting the scaling in this way? We all have the standard windows system
font size.

Any ideas?
 
N

not_a_commie

Does he have different font sizes in his display theme? It seems like
font scaling was the default. I'm sure glad MS ditched this "feature"
for WPF.
 
J

Josh Einstein

If the forms were created when the developer's machine was set to another
DPI, then the auto-scale information persisted in the form will use that
DPI. It's a huge pain in the ass and I'm glad WPF made it all irrelevant.

Josh Einstein
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top