Articles in this section

How to add the TooStripEx to the ToolStripTabItem on WinForms RibbonControlAdv?

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)

 

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