To access or change the colors that are used by DotNetBar Ribbon and other controls in Office 2007, 2010, Windows 7 and other styles you could use following code:

VB:

If TypeOf GlobalManager.Renderer Is Office2007Renderer Then
   Dim table As Office2007ColorTable = DirectCast(GlobalManager.Renderer, Office2007Renderer).ColorTable
   ' Assign the WinForms Panel BackColor to DotNetBar panel BackColor
   ' Explore properties and collections on table to change and access all available colors
   panel1.BackColor = table.LegacyColors.PanelBackground
End If

C#:

if (GlobalManager.Renderer is Office2007Renderer)
{
   Office2007ColorTable table = ((Office2007Renderer)GlobalManager.Renderer).ColorTable;
   // Assign the WinForms Panel BackColor to DotNetBar panel BackColor
   panel1.BackColor = table.LegacyColors.PanelBackground;
   // Explore properties and collections on table to change and access all available colors
}

Related posts:

  1. How To Customize Office 2007 Color Table
  2. How to customize Office 2007 color table on per Bar or Control instance
  3. Changing NavigationPane Color Scheme
  4. How to change & apply Ribbon Color Table
  5. How to Customize DateTimeInput, DoubleInput, IntegerInput and TextBoxX colors