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.
SftTabs/OCX 7.0 supports dark mode. By default the tab control uses the light palette. An application opts in by setting the DarkMode property to darkSftTabsAuto so the control follows the Windows "Choose your mode" setting automatically - users who have selected Dark see a dark color palette and users who have selected Light see the traditional palette. 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. darkSftTabsOn always uses the dark palette regardless of the Windows setting.
What changes in dark mode: the tab control background, the client area, the tab labels, the active tab, the scroll buttons and the Close, Minimize and Restore buttons switch to dark-palette colors.
The DarkMode property has three values (see SftTabsDarkModeConstants):
| Value | Description |
|---|---|
| darkSftTabsAuto | Follow the Windows "Choose your mode" setting, read when the control is created. |
| darkSftTabsOn | Always use the dark palette, regardless of the Windows setting. Useful when the application has its own Light / Dark toggle and wants the tab control to follow it. |
| darkSftTabsOff (default) | Always use the light palette, regardless of the Windows setting. Useful when the application does not yet support dark mode end-to-end and mixing dark and light controls would look wrong. |
The DarkModeChange event is fired when the active dark mode state flips (darkSftTabsAuto only), provided the container passes the Windows setting change on to the control. Visual Basic 6.0 does not, so the event does not occur there. The DarkModeActive property reports the current state at any time.
The tab control switches its own colors only. The controls an application places on the tab pages (labels, frames, check boxes, text boxes and others) and the form itself are Visual Basic controls, which have no dark mode of their own. A label with black text on a dark tab page is hard to read, so an application that uses dark mode sets suitable BackColor and ForeColor values for these controls.
Caller-supplied color overrides (explicit RGB values assigned to color properties such as BackColor and ForeColor and the colors of the individual tabs) are still honored in dark mode - the control does not override application-chosen colors. If you set explicit colors and also want dark mode, pick accent colors that read well on both a light and a dark background (mid-tone saturated values in the RGB 30-210 range tend to work in both).
Windows themes are suppressed while dark mode is active. The tabs are drawn by the control itself so they match the dark palette instead of the system's light-themed tab style (see Using Themes).
Tab images and background bitmaps are the application's responsibility. An image is drawn as supplied when the palette turns dark.
Dark mode and Windows High Contrast are independent settings. If both are active, high contrast takes precedence. See High Contrast.
Dark mode requires Windows 10 version 1809 or later, or Windows 11.