If you are using DotNetBar 8.2 and later use StyleManager component instead. Read more about StyleManager.

To change the Office 2007 renderer color table and apply it to all DotNetBar controls on the form use following call:

RibbonPredefinedColorSchemes.ChangeOffice2007ColorTable(myForm, DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Blue)

myForm – Reference to the form which contains all DotNetBar controls you want to apply color table to

colorTable – An enumeration value from eOffice2007ColorScheme like Blue, Silver or Black

If you are using .NET Framework 2.0 you can omit the reference to the form to change and apply the color table to all open forms. For example:


If you want to make a new color table that is based on a existing color table and single color you specify use:

RibbonPredefinedColorSchemes.ChangeOffice2007ColorTable(myForm, colorTable, myColor)

If you are using .NET Framework 2.0 you can omit  reference to the form to apply the change to all open forms. For example:

RibbonPredefinedColorSchemes.ChangeOffice2007ColorTable(this, DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Silver, Color.Red)

If you have made custom changes to the color table you can apply such changes to all DotNetBar controls by calling following method:

If you do not have a reference to the form you can change the color table directly on the renderer using following code:

if (GlobalManager.Renderer is Office2007Renderer)
    ((Office2007Renderer)GlobalManager.Renderer).ColorTable = new Office2007ColorTable(colorTable);

Where colorTable is one of the values from the eOffice2007ColorScheme enum.

If you need to be notified when color table has changed use Office2007Renderer.ColorTableChanged event.

Applies to DotNetBar 5.9 and later.