Visual Basic Reference

Visual Studio 6.0

StartUpPosition Property

See Also    Example    Applies To

Returns or sets a value specifying the position of an object when it first appears. Not available at run time.


object.StartUpPosition = position

The StartUpPosition property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
StartUpPosition An integer that specifies the position of the object, as shown in Settings.


You can use one of four settings for StartUpPosition:

Constant Value Description
vbStartUpManual 0 No initial setting specified.
vbStartUpOwner 1 Center on the item to which the UserForm belongs.
vbStartUpScreen 2 Center on the whole screen.
vbStartUpWindowsDefault 3 Position in upper-left corner of screen.