# StartMode
{: .no_toc }

Returns an **Integer** indicating how the application was started. Read-only.

Syntax: *object*.**StartMode**

*object*
: *required* An object expression that evaluates to an **_App** object. In practice this is the global **App** object.

In VB6, **StartMode** returns `0` (**vbSModeStandalone**) when the application was launched as a standalone executable, or `1` (**vbSModeAutomation**) when it was started as an ActiveX Automation server by an external client. Code in ActiveX DLL or EXE projects uses this value to determine whether a visible user interface should be shown.

> [!NOTE]
>
> **StartMode** is not yet implemented in twinBASIC. Reading the property always returns `0`.

### See Also

- [UnattendedApp](/tB/Packages/AppGlobalClassObject/_App/UnattendedApp.md) property
- [NonModalAllowed](/tB/Packages/AppGlobalClassObject/_App/NonModalAllowed.md) property
- [TaskVisible](/tB/Packages/AppGlobalClassObject/_App/TaskVisible.md) property
