Screen::FromHandle Method (IntPtr)
.NET Framework (current version)
Retrieves a Screen for the display that contains the largest portion of the object referred to by the specified handle.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- hwnd
-
Type:
System::IntPtr
The window handle for which to retrieve the Screen.
Return Value
Type: System.Windows.Forms::Screen^A Screen for the display that contains the largest region of the object. In multiple display environments where no display contains any portion of the specified window, the display closest to the object is returned.
SecurityPermission
to get an object from a Win32 handle. Associated enumeration: SecurityPermissionFlag::UnmanagedCode
.NET Framework
Available since 1.1
Available since 1.1
Show: