Category / Section
How to add the TooStripEx to the ToolStripTabItem on WinForms RibbonControlAdv?
1 min read
Add ToolStripEx to the ToolStripTabItem
The Panel property specifies the ToolStripEx that is associated with the ToolStripTabItem.
C#
ToolStripEx toolStripEx = new ToolStripEx();
toolStripEx.Items.Add(new ToolStripButton("New"));
toolStripEx.Items.Add(new ToolStripDropDownButton("Open"));
// Add the toolStripEx to the toolStripTabItem on RibbonControlAdv
this.toolStripTabItem1.Panel.AddToolStrip(toolStripEx);
VB
Dim toolStripEx As ToolStripEx = New ToolStripEx()
toolStripEx.Items.Add(New ToolStripButton("New"))
toolStripEx.Items.Add(New ToolStripDropDownButton("Open"))
//Add the toolStripEx to the toolStripTabItem on RibbonControlAdv
Me.toolStripTabItem1.Panel.AddToolStrip(toolStripEx)