We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the Header BackColor of a Stacked WinForms GroupBar when it is in Office2003 Visual Style?

Platform: WinForms |
Control: GroupBar

Visual style

In GroupBar, you can customize the header color of the GroupBarItem by using the class named Office2003Colors.


//Sets the Office2003 visual style
this.groupBar1.VisualStyle = Syncfusion.Windows.Forms.VisualStyle.Office2003;
//Enables stacked mode
groupBar1.StackedMode = true;
//Customizes the Header BackColor of GroupBarItem's
Syncfusion.Windows.Forms.Office2003Colors.GroupBarHeaderColorDark = Color.Red;
Syncfusion.Windows.Forms.Office2003Colors.GroupBarHeaderColorLight = Color.White;



'Sets the Office2003 visual style
Me.groupBar1.VisualStyle = Syncfusion.Windows.Forms.VisualStyle.Office2003
'Enables stacked mode
groupBar1.StackedMode = True
'Customizes the Header BackColor of GroupBarItem's
Syncfusion.Windows.Forms.Office2003Colors.GroupBarHeaderColorDark = Color.Red
Syncfusion.Windows.Forms.Office2003Colors.GroupBarHeaderColorLight = Color.White



In GroupBar, StackedMode property is enabled to customize the appearance of the GroupBar header.


Customize the header backcolor in GroupBar

Figure 1: GroupBar header backcolor customization in Office2003 visual style


C#: http://www.syncfusion.com/downloads/support/directtrac/139533/GroupBar1603706498.zip

VB: http://www.syncfusion.com/downloads/support/directtrac/general/GroupBar_VB-267415748.zip

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment
Winfried Andreas
Mar 07, 2015
Please add namespace information: Where, eg. in which assembly and namespace do I find the enumeration you refer to? Reply
Saravanan Thirunavukkarasu [Syncfusion]
Mar 09, 2015
Hi Winfried, Thank you for using Syncfusion products, The following namespace and assembly needs to be included for this reported case. Assembly: Syncfusion.Shared.Base Namespace: Syncfusion.Windows.Forms; We have also prepared a sample for your reference and it can be downloaded from the following location. Samples: C# : http://www.syncfusion.com/downloads/support/directtrac/general/GroupBar_C#-467452140.zip VB : http://www.syncfusion.com/downloads/support/directtrac/general/GroupBar_VB-267415748.zip We have also modified the KB article upon your suggestion. This will be reflected as earlier as possible. Please let us know if you need any further assistance, Regards, Saravanan T Reply

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile