Windows apps
Collapse the table of content
Expand the table of content
Information
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.

Namespace:   System.Windows.Forms
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.

Return Value

Type: System::Boolean

true if successful; otherwise false.

.NET Framework
Available since 4.7
Return to top
Show:
© 2017 Microsoft