All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

WindowsFormsSettings.SetPerMonitorDpiAware() Method

Enables "Per-Monitor (v2)" DPI awareness mode for the process if it runs on versions greater than Windows 10 Creators Update (build 1703). On older Windows OS versions, enables system DPI awareness mode.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v20.1.dll

Declaration

public static void SetPerMonitorDpiAware()
Public Shared Sub SetPerMonitorDpiAware

Remarks

On Windows 10, version 1607 and later, the SetPerMonitorDpiAware method enables "Per-Monitor (v2)" DPI awareness mode by calling the SetProcessDpiAwarenessContext WinApi function.

On older Windows OS versions, the SetPerMonitorDpiAware method enables system DPI-awareness (this method is equivalent to the WindowsFormsSettings.SetDPIAware method in this case).

See High DPI Desktop Application Development on Windows for information on DPI awareness modes.

See Also