Defines the dark mode setting (off, on, or following the Windows setting).
Get
| VB | Mode = object.DarkMode As SftTabsDarkModeConstants |
Put
| VB | object.DarkMode = Mode As SftTabsDarkModeConstants |
object
Mode
Defines the dark mode setting (off, on, or following the Windows setting).
| Name | Value | Description |
|---|---|---|
| darkSftTabsOff | 0 | Always light (the default). |
| darkSftTabsOn | 1 | Always dark. |
| darkSftTabsAuto | 2 | Follow the Windows dark mode setting. |
Note: Visual Basic 6.0 does not support dark mode. Forms and the Visual Basic controls always use the light colors; only the tab control switches to the dark palette.
The DarkMode property defines the dark mode setting (off, on, or following the Windows setting).
When set to darkSftTabsAuto, the control follows the Windows 'Choose your mode' setting. In a Visual Basic 6.0 application the Windows setting is read when the control is created; a change made while the application is running takes effect the next time the application starts.
Use DarkModeActive to determine whether dark mode is currently active.
See Also SftTabs Object | Object Hierarchy | Dark Mode