SftMask/NET 3.0 supports per-monitor DPI awareness (Per-Monitor v2). In a per-monitor aware application, the control adapts when its window moves to a monitor with a different scale factor: the field, its border and buttons, the underlines, the popup calculator and the autocomplete list are sized for the monitor's DPI, and the control's height follows its font when the SftMask.AutoSize property is set. A popup opened on another monitor than its field uses the DPI of that monitor.
A Windows Forms application becomes per-monitor aware with this setting in its app.config file (.NET Framework 4.7 or later), together with Windows 10 compatibility in its application manifest:
<System.Windows.Forms.ApplicationConfigurationSection> <add key="DpiAwareness" value="PerMonitorV2" /> </System.Windows.Forms.ApplicationConfigurationSection>
A .NET 10 application becomes per-monitor aware by calling Application.SetHighDpiMode(HighDpiMode.PerMonitorV2) before it creates its first window.
The control's DeviceDpi property returns the DPI of the monitor showing the control, and the DpiChangedAfterParent event occurs when it changes. Both are inherited from the Control class. The SftMask/NET samples are per-monitor aware.
Applications that are only DPI aware for the primary monitor (System DPI aware) get the same scaling at the system DPI.