Articles in this section
Category / Section

How to programmatically change the barStyle of a bar in WinForms XPToolBar?

1 min read

Change the bar style

The XPMenus framework maintains a user-preferred BarStyle state for all the Bars in BarManagers. Please refer the below code snippet which illustrtaes this:

C#

bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.AllowQuickCustomizing;
bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.IsMainMenu;
bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.Visible;

VB

bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.AllowQuickCustomizing
bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.IsMainMenu
bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.Visible

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied