StartPosition Property

Applies To
Form

Description
Gets or sets the starting position of the form at run time.

Usage

GGet Form.StartPosition, var  
GSet  Form.StartPosition, value  
Form
Name of a form or string variable containing a form name.
var
Integer variable that will contain the value of the property.
value
Integer expression for the new value of the property.

Values
0 - Manual
1 - CenterScreen
2 - CenterParent
Default: CenterScreen

See Also
Form, WindowState

Example

GSet frmMain.StartPosition, STARTPOSITION_CENTERSCREEN