high DPI problems

In theory, font and DPI scaling in Winforms are automatic. In practice... not so much.

I've noticed that it copes better with vertical scaling than horizontal, but even then it's far from perfect.

In my experience, scaling is only reliable when you do one of two things:

  1. Don't use the designer at all. This is quite painful, but it does give you the requisite amount of control over your layout.

  2. Use the built-in layout controls - specifically, the FlowLayoutPanel and TableLayoutPanel. These guys are your best friends; I rarely do anything in Winforms without them anymore.

In your case, I'd probably go with #2. Based on the screen capture, I think it would be quite easy to fit your layout into a combination of TableLayoutPanel and FlowLayoutPanel containers - possibly even just one TableLayoutPanel.


You should look into the AutoScaleMode and AutoSize features. Combined with the docking abilities you should be able to achieve what you want.

I had a really good article on that but the link is dead... anyway, this should get you started:

http://msdn.microsoft.com/en-us/library/ms229605.aspx

http://www.sellsbrothers.com/writing/winformsAutoScaling.htm

http://msdn.microsoft.com/en-us/library/system.windows.forms.autoscalemode.aspx


This may not solve your problem.

But we learnt the hard way that Label and the text controls should be stacked vertically, i.e. place the Text Box below the Label, instead of next to the label. This solved a lot of problems for us including support for multiple languages as text width in different languages can be more than English text


Comments

  1. Joaquin

    • 2015/6/6

    Elements such as applications, the taskbar, icons, toolbars, text, and dialog boxes appear to be fuzzy.

  2. Louie

    • 2019/1/7

    When you use a high-DPI device such as a Surface Pro 3, Surface Pro 4, or Surface Book together with external monitors, you experience the following issues: Elements such as applications, the taskbar, icons, toolbars, text, and dialog boxes appear to be fuzzy. Elements are too large or too small

  3. Alexis

    • 2015/10/16

    Elements are too large or too small compared to the rest of the desktop.

  4. Zion

    • 2018/7/22

    I have a problem with the display of our .NET Windows application under high dpi settings. All forms are set to AutoScaleMode = DPI, but this does not solve all the problems. Basically labels end up expanding in size to cope woth the font being bigger, but the location of other controls does not change and we end up with lables obscuring other

  5. Edgar

    • 2016/12/10

    Fix Windows scaling issues for high-DPI devices · Open Settings > Ease of Access · Here, under Display, you can change the size of apps, text, and 

  6. Emery

    • 2019/2/19

    Possible issues include: The Start Screen, Library panel, and other extension panels don't scale correctly (appear too small and offset) Menu dropdowns don't align to the top menu bar The cursor consistently shows spinning loading circle next to cursor Canvas isn't centered in the document window

  7. Dallas

    • 2019/7/27

    The first major problem with Windows 10 high-DPI displays is that the vast majority of Windows applications weren't written for such high 

  8. Leone

    • 2016/5/29

    High DPI Scaling in System Settings. A quick way to deal with high DPI scaling in Windows 10 is to change the options in Advanced Scaling Settings. You can find them by right-clicking on a blank part of the desktop and click Display Settings.

  9. Ridge

    • 2016/5/13

    I actually didn't know that high DPI scaling still existed on Windows 10 I came across the issue again, today, with Yubico Authenticator.

  10. Bowen

    • 2021/7/1

    As a high-DPS laptop user and an Android Studio user, I agree the DPI problem is a big one. But it's not just a Windows issue -- every application must be rewritten (sometimes from the ground up

  11. Sutton

    • 2021/1/17

    Solutions to fix Windows HiDPI problems · Solution 1 – Control System-Wide Display Scaling · Solution 2 – Disable display scaling for specific 

  12. Everett

    • 2019/2/5

    The first major problem with Windows 10 high-DPI displays is that the vast majority of Windows applications weren’t written for such high resolutions. Newer applications are more aware of high

  13. Abel

    • 2018/4/24

    High-DPI Scaling Improvements for Desktop Applications in the Windows 10 Creators Update (1703) · Some applications (Word) render blurry on the 

  14. Randy

    • 2016/10/10

    In recent years, High-DPI displays have become common. GDI Scaling is an effort to address this problem by transparently scaling 

  15. Joe

    • 2019/9/14

    Solution · Quit Photoshop. · In Windows File Explorer, navigate to the Photoshop installation folder. · Right-click Photoshop.exe in the 

  16. White

    • 2020/1/7

    Issue. Photoshop doesn't support overriding High DPI scaling behavior on Windows versions 10 or greater. Users who override this setting 

Comments are closed.

Recent Posts