This documentation is archived and is not being maintained.

Visual Basic Extensibility Reference

Visual Studio 6.0

StartUpObject Property

See Also   Example   Applies To

Returns or sets the startup component for the project.



The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Return Values

The value that is returned is a variant that contains either an enumerated value of type vbext_StartupObject, or a VBComponent object that represents the startup object.

The StartUpObject property settings for vbext_StartUpObject are:

Constant Value Description
vbext_so_SubMain 0 Startup object is the sub Main.
vbext_so_None 1 There is no startup object.


Only visual at run time project items can be the startup object.