GH_WindowsFormUtil.CenterFormOnCursor Method

GH_WindowsFormUtilCenterFormOnCursor Method

Positions a Form so that it is centered around the cursor

Namespace:  Grasshopper.GUI
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static void CenterFormOnCursor(
	Form F,
	bool limitToScreen
)
Public Shared Sub CenterFormOnCursor ( 
	F As Form,
	limitToScreen As Boolean
)

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 screen containing the cursor.
See Also