Articles in this section
Category / Section

How to add the ToolStripTabItem to the WinForms RibbonControlAdv?

1 min read

Add the ToolStripTabItem

The Header property of the RibbonControlAdv is used to add or remove the ToolstripTabItem to the RibbonControlAdv.

C#

// Declare and initialize ToolStripTabItem.
private Syncfusion.Windows.Forms.Tools.ToolStripTabItem toolStripTabItem1;
this.toolStripTabItem1 = new Syncfusion.Windows.Forms.Tools.ToolStripTabItem();
 // Add it to the RibbonControlAdv.
this.ribbonControlAdv1.Header.Items.Add(this.toolStripTabItem1);
this.ribbonControlAdv1.Header.MainItems.Add(new Syncfusion.Windows.Forms.Tools.ToolStripItemAdvInfo(this.toolStripTabItem1));
// Set the text property.
this.toolStripTabItem1.Text = "Home";

VB

' Declare and initialize ToolStripTabItem.
 Private toolStripTabItem1 As Syncfusion.Windows.Forms.Tools.ToolStripTabItem
Me.toolStripTabItem1 = New Syncfusion.Windows.Forms.Tools.ToolStripTabItem()
 ' Add it to the RibbonControlAdv.
Me.ribbonControlAdv1.Header.Items.Add(Me.toolStripTabItem1)
Me.ribbonControlAdv1.Header.MainItems.Add(New Syncfusion.Windows.Forms.Tools.ToolStripItemAdvInfo(Me.toolStripTabItem1))
 ' Set the text property.
Me.toolStripTabItem1.Text = "Home"

 

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