AutoCenter Property
Collapse the table of content
Expand the table of content

AutoCenter Property

Specifies whether the form object is automatically centered in the main Visual FoxPro window or on the desktop the first time it is displayed. Available at design time and run time.

Object.AutoCenter [ = lExpr]


Specifies whether the Form object is centered or placed according to the settings of the Top and Left properties. The settings for the AutoCenter property are:

Setting Description

True (.T.)

The Form object is centered and the values of the Top and Left properties are set to the new position.

False (.F.)

(Default) The Form object is not centered and is placed at the coordinates specified by the Top and Left properties.

Applies To: Form Object | _SCREEN System Variable

Forms are displayed in the main window, so setting AutoCenter to true (.T.) centers the form within the main window.


Resetting AutoCenter to false (.F.) after it has been set to true (.T.) will not return the form to the original Top and Left position.

Community Additions

© 2016 Microsoft