The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Form::OnGetDpiScaledSize Method (Int32, Int32, Size%)
Raises the GetDpiScaledSize event.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
protected: [BrowsableAttribute(true)] virtual bool OnGetDpiScaledSize( int deviceDpiOld, int deviceDpiNew, Size% desiredSize )
Parameters
- deviceDpiOld
-
Type:
System::Int32
The DPI value for the display device where the form was previously displayed.
- deviceDpiNew
-
Type:
System::Int32
The DPI value for the display device where the form will be displayed.
- desiredSize
-
Type:
System.Drawing::Size%
A Size representing the new size of the form based on the new DPI value.
.NET Framework
Available since 4.7
Available since 4.7
Show: