Different resolutions


Author
Message
Ross L Rooker, Sr.(1)
Ross L Rooker, Sr.(1)
StrataFrame User (148 reputation)StrataFrame User (148 reputation)StrataFrame User (148 reputation)StrataFrame User (148 reputation)StrataFrame User (148 reputation)StrataFrame User (148 reputation)StrataFrame User (148 reputation)StrataFrame User (148 reputation)StrataFrame User (148 reputation)
Group: StrataFrame Users
Posts: 50, Visits: 163
On my main form I had set the AutoScroll property to TRUE and this seemed to work horizontally but not vertically.

I have a customer that has a laptop with a low resolution. Initially the vertical scroll bar would not appear and I set the AutoSizeMode to "GrowAndShrink" on my main form. That works perfectly.

I looked at the property on the main form AutoScaleMode which by default is Font. The other options are None, DPI and Inherit. When would you want to use these different options?
StrataFrame Team
S
StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
The AutoScaleMode tries to re-size the form according to the system DPI.  For laptops, Surfaces, etc, which have very small, high resolution screens, the DPI is often set to 125% or 150%.  The AutoScaleMode property then tries to increase the size of the form to match the increase in the size of the text.  I don't remember the intricacies of which option does what.  You'll have to try them out by setting the different options and changing the DPI on your computer to test it.

I do know that at 150%, the text on WinForms looks like trash.  Instead of rendering the text at 1.5x the size, it actually renders the text at 1x to a bitmap and then scales the bitmap up to 1.5x.  This makes the text look blurry and blocky, just like scaling up any bitmap.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search