CommandBars Articles and Tutorials

Disabling Luna Colors When using the Office 2003 Theme

Author: Mike Palmatier
Platform: Visual Basic 6.0

By default, when the Office 2003 theme is used the Luna Colors for the currently set system theme will be used to color the Commandbars. Luna colors are the Blue, Silver, and Olive themes used in Windows XP. If you application is running on Windows XP and using the Office 2003 theme, then it will use one of the Luna themes if they are currently set. To disable this, the LunaColors property must be set to False. When disabled, the commandbars will be drawn in shades of gray as shown in the lower right window.

Luna Theme Disabled

The code below disable Luna Colors as in the window on the left in the picture above.

CommandBars.Options.LunaColors = False