StartUpPosition Property (AForm)

Returns the position of a form when it first appears.

Syntax

[ enStartUpPosition = ] Object.StartUpPosition

The StartUpPosition property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

enStartUpPosition

enumAFormStartUpPosition

An integer that specifies the position of a form when it first appears.

Where

enumAFormStartUpPosition:

 

Name

Value

Description

aformStartUpPositionManual

0

Manual. No initial setting specified.

aformStartUpPositionOwner

1

Owner. Center the form on the item to which the form belongs.

aformStartUpPositionScreen

2

Screen. Center the form on the whole screen.

aformStartUpPositionWindowsDefault

3

Windows Default. Position the form in the upper-left corner of the screen.

Example

The following statement returns the AForm StartUpPosition on the screen:

lfrm1StartUpPosition = frm1.StartUpPosition

Applies to

AForm

See Also

MDIArrange, OnActivate, OnGotFocus, OnLoad, OnPaint, Visible