Resolved Form size autoscaling

aaaron

Well-known member
Joined
Jan 23, 2011
Messages
216
Programming Experience
10+
Much info at Automatic scaling (Windows Forms .NET) site

Also others attempting to completely explain auto scaling

Some say to set AutoScaleMode property to Dpi, other to use Font

Some mention AutoSizeMode property to GrowAndShrink others do not

Some say to add <dpiAware> to the application manifest. Other do not mention it

Also, Widows does auto scaling and WinForms platform has its own scaling mechanism

I can’t find it again but I’m quite sure I read where it changes in Net 8

I’m confused!

What should I code so that my forms have the same size on all monitors?

(I'd like to be ready for Net 8)
 
How about:
Should I use Windows.Forms.AutoScaleMode.Font
or Windows.Forms.AutoScaleMode.Dpi

Seems I read (tho I can nolonger find it) that Net 8 or Windows made Dpi desirable.
 
Thanks, now I know why I didn't save the site address.

I don't think I understood one thing there,

I don't think thier use of "linear" and "non-linear" agree with my understanding of the terms (math usage).

I did understand and like : "No action is required." :)

The HighDpiMode Enum sepecification is also greek to me.

I'm using AutoScaleMode.Font and target only up to date Windows 10 and Windows 11. My code does not try to rescale for different monitors.

Is there anything anything else I shoul specify?
(Or maybe use AutoScaleMode.Dpi)

Thank again for the site.
 
Solution
Back
Top