Screen.fromControl

Overview | Methods | Fields | This Package | All Packages

Screen.fromControl

Retrieves a Screen object for the monitor that contains the largest portion of the specified control or window.

Syntax

public static Screen fromControl( Control control )

Parameters

control

A Control object for which to retrieve the monitor.

Return Value

Returns a Screen object for the monitor that contains the largest region of the specified control. If no monitor contains the control, then the monitor closest to the specified control is returned.

See Also   fromPoint, fromHwnd, fromRectangle