Articles in this section
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)

 

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