'Declaration
<System.Windows.Forms.SRCategoryAttribute("CatLayout")> <System.Windows.Forms.SRDescriptionAttribute("FormOnDpiChangedDescr")> Public Event DpiChanged As System.Windows.Forms.DpiChangedEventHandler
'Usage
Dim instance As NSplashScreenForm Dim handler As System.Windows.Forms.DpiChangedEventHandler AddHandler instance.DpiChanged, handler
[System.Windows.Forms.SRCategory("CatLayout")] [System.Windows.Forms.SRDescription("FormOnDpiChangedDescr")] public event System.Windows.Forms.DpiChangedEventHandler DpiChanged
Event Data
The event handler receives an argument of type System.Windows.Forms.DpiChangedEventArgs containing data related to this event. The following DpiChangedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | (Inherited from System.ComponentModel.CancelEventArgs) |
DeviceDpiNew | Gets the DPI value for the new display device where the control or form is currently being displayed. |
DeviceDpiOld | Gets the DPI value for the display device where the control or form was previously displayed. |
SuggestedRectangle | Gets a System.Drawing.Rectangle that represents the new bounding rectangle for the control or form based on the DPI of the display device where it's displayed. |
Requirements
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)
See Also