Returns the effective DPI for the control's current monitor.
Get
| VB.NET | DPI = object.DPI As Integer |
| VB | DPI = object.DPI As Long |
| C#.NET | int DPI = object.DPI; |
| VC++ | long DPI = object->DPI; long DPI = object->GetDPI(); |
| C | HRESULT object->get_DPI(long* DPI); |
object
Returns the effective DPI for the control's current monitor.
The DPI property returns the effective DPI for the control's current monitor.
On a per-monitor DPI-aware host, the value changes when the control moves to a monitor with a different DPI; the DPIChanged event is raised when this happens. A value of 96 corresponds to 100% scaling.
See Also SftButton Object | Object Hierarchy | Per-Monitor DPI and Scaling