| Visual Basic (Declaration) | |
|---|---|
Public Event DpiChanged As DpiChangedEventHandler | |
| C# | |
|---|---|
public event DpiChangedEventHandler DpiChanged | |
The event handler receives an argument of type 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. |