)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to switch between visual style in WinForms GroupBar?

Platform: WinForms |
Control: GroupBar |
Published Date: January 29, 2015 |
Last Revised Date: January 2, 2020

Visual style

In GroupBar, you can change the Visual Style by using its VisualStyle property. The following code example illustrates the same.

C#

//Set the Default Visual Style
this.groupBar1.VisualStyle = VisualStyle.Default;
//Set the OfficeXP Style
this.groupBar1.VisualStyle = VisualStyle.OfficeXP;
//Set the Office2003 Style
this.groupBar1.VisualStyle = VisualStyle.Office2003;
//Set the Office2007 Style
this.groupBar1.VisualStyle = VisualStyle.Office2007;
//Set the Office2007Outlook Style
this.groupBar1.VisualStyle = VisualStyle.Office2007Outlook;
//Set the Office2010 Style
this.groupBar1.VisualStyle = VisualStyle.Office2010;
//Set the VS2005 Style
this.groupBar1.VisualStyle = VisualStyle.VS2005;
//Set the VS2010 Style
this.groupBar1.VisualStyle = VisualStyle.VS2010;
//Set the Metro Style
this.groupBar1.VisualStyle = VisualStyle.Metro;

VB

'Set the Default Visual Style
Me.groupBar1.VisualStyle = VisualStyle.Default
'Set the OfficeXP Style
Me.groupBar1.VisualStyle = VisualStyle.OfficeXP
'Set the Office2003 Style
Me.groupBar1.VisualStyle = VisualStyle.Office2003
'Set the Office2007 Style
Me.groupBar1.VisualStyle = VisualStyle.Office2007
'Set the Office2007Outlook Style
Me.groupBar1.VisualStyle = VisualStyle.Office2007Outlook
'Set the Office2010 Style
Me.groupBar1.VisualStyle = VisualStyle.Office2010
'Set the VS2005 Style
Me.groupBar1.VisualStyle = VisualStyle.VS2005
'Set the VS2010 Style
Me.groupBar1.VisualStyle = VisualStyle.VS2010
'Set the Metro Style
Me.groupBar1.VisualStyle = VisualStyle.Metro

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/GroupBar_Style-990572929.zip

Reference link: https://help.syncfusion.com/windowsforms/navigation-pane/visual-styles

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

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
Live Chat Icon