Skip to content

Dpi awareness

common docs#

  • https://learn.microsoft.com/en-us/windows/win32/learnwin32/dpi-and-device-independent-pixels
  • https://learn.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows
  • https://learn.microsoft.com/en-us/dotnet/desktop/winforms/whats-new/net60 - how to enable dpi awareness in .net 6 in code or in project file

  • https://docs.devexpress.com/WindowsForms/116666/common-features/high-dpi-support - see 'Common Recommendations and Settings' there

  • https://www.telerik.com/blogs/built-in-high-dpi-support-coming-to-telerik-ui-for-winforms
  • https://www.telerik.com/blogs/winforms-scaling-at-large-dpi-settings-is-it-even-possible-
  • https://developer.mescius.com/blogs/creating-high-dpi-ribbons-for-winforms-dotnet-5 --- good styled post about dpi awareness in winforms

.net framework:#

  • https://learn.microsoft.com/en-us/dotnet/desktop/winforms/high-dpi-support-in-windows-forms
  • The new Windows Forms features that support high DPI awareness are available only in applications that target the .NET Framework 4.7 and are running on Windows operating systems starting with the Windows 10 Creators Update.

vs#

Symptom: "Scaling on your main display is set to 150%." warning in VS Forms Designer. Solution:

<PropertyGroup>
  ...
  <ForceDesignerDPIUnaware>true</ForceDesignerDPIUnaware>
</PropertyGroup>
Source: https://learn.microsoft.com/en-us/visualstudio/designers/disable-dpi-awareness?view=vs-2022