System.Windows.Forms.Screen.FromHandle Method

Retrieves a System.Windows.Forms.Screen for the display that contains the largest portion of the object referred to by the specified handle.

Syntax

public static Screen FromHandle (IntPtr hwnd)

Parameters

hwnd
The window handle for which to retrieve the System.Windows.Forms.Screen.

Returns

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

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0