Author Topic: High DPI Monitor Issue  (Read 2105 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
High DPI Monitor Issue
« on: April 18, 2019, 09:16:07 AM »
If developing on a PC with a High DPI monitor (>1920) then you will get graphics changing sizes between design time and run time.

This is fixed by adding a key into the Windows registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\devenv.exe]
"dpiAwareness"=dword:00000000

You can read more about this here:

https://code4ward.net/2016/11/29/visual-studio-winforms-designer-on-highdpi/