My mdiMain StyleManager properties are below ManagerStyle :Office2013 MetroColorParameters:CanvasColor:black, baseColor:White and my child form i wanted to give different back color and border color to Combo Box as with StyleManager it is black color, which i wanted it to change to white background gray borders.
i am using the below code to change the color after my StyleManager had changed the Style
LinearGradientColorTable linGrBrush = new LinearGradientColorTable(
Color.FromArgb(192, 192, 192),
Color.FromArgb(104, 104, 104));
if (GlobalManager.Renderer is Office2007Renderer)
{
Office2007ColorTable ct = ((Office2007Renderer)GlobalManager.Renderer).ColorTable;
ct.ComboBox.DroppedDown.Background = Color.White;
ct.ComboBox.Default.Background = Color.White;
ct.ComboBox.Default.ExpandBackground = linGrBrush;
ct.ComboBox.DroppedDown.Border = Color.Gray;
ct.ComboBox.Default.Border = Color.Gray;
}
below is code which solved my problem i used ComboBox.DefaultStandalone property instead of ComboBox.Default