# WindowState
{: .no_toc }

The window state of a [**WaynesForm**](/tB/Packages/CustomControls/WaynesForm/index.md) --- minimized, restored to normal size, or maximized to fill its monitor. Used by [**WindowsFormOptions.WindowState**](/tB/Packages/CustomControls/WaynesForm/WindowsFormOptions.md#windowstate); honoured once when the form is first shown.

| Constant | Value | Description |
|----------|-------|-------------|
| **tbNormal**{: #tbNormal } | 0 | The window is shown at its design-time size. The default for newly-constructed [**WindowsFormOptions**](/tB/Packages/CustomControls/WaynesForm/WindowsFormOptions.md). |
| **tbMinimized**{: #tbMinimized } | 1 | The window is minimized to the taskbar on first display. |
| **tbMaximized**{: #tbMaximized } | 2 | The window is maximized to fill its monitor on first display. |

The three names are also the members of [**Customtate**](/tB/Packages/CustomControls/Enumerations/Customtate.md), and **tbNormal** is a member of [**FontWeight**](/tB/Packages/CustomControls/Enumerations/FontWeight.md) as well, so each name written alone is ambiguous (TB5073), even where a **WindowState** is expected. Qualify it with the enumeration's name:

```tb check_build
Dim state As WindowState = WindowState.tbMaximized
```
