WindowState
The window state of a WaynesForm — minimized, restored to normal size, or maximized to fill its monitor. Used by WindowsFormOptions.WindowState; honoured once when the form is first shown.
| Constant | Value | Description |
|---|---|---|
| tbNormal | 0 | The window is shown at its design-time size. The default for newly-constructed WindowsFormOptions. |
| tbMinimized | 1 | The window is minimized to the taskbar on first display. |
| tbMaximized | 2 | The window is maximized to fill its monitor on first display. |
The three names are also the members of Customtate, and tbNormal is a member of FontWeight as well, so each name written alone is ambiguous (TB5073), even where a WindowState is expected. Qualify it with the enumeration’s name:
Dim state As WindowState = WindowState.tbMaximized