Click or drag to resize

GH_WindowsFormUtilCenterFormOnScreen Method (Form, Boolean)

Positions a Form so that it is centered on the current screen. The current screen being defined as the screen containing the cursor.

Namespace:  Grasshopper.GUI
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static void CenterFormOnScreen(
	Form F,
	bool limitToScreen
)

Parameters

F
Type: System.Windows.FormsForm
The Form to adjust
limitToScreen
Type: SystemBoolean
If True, the Form won't be allowed to extend beyond the limits of the active screen.
See Also