Category / Section
How to display the ToolStripDropDown item when we click the menu button of the WinForms RibbonControlAdv?
1 min read
Display the ToolStripDropDown item
The MenuDropDownButton property gets or sets the ToolStripDropDown that is to be displayed when the menu button is clicked.
C#
ToolStripDropDown newDropDown = new ToolStripDropDown(); newDropDown.Items.Add(new ToolStripButton("New")); this.ribbonControlAdv1.MenuButtonDropDown = newDropDown;
VB
Dim newDropDown As ToolStripDropDown = New ToolStripDropDown() newDropDown.Items.Add(new ToolStripButton("New")) Me.ribbonControlAdv1.MenuButtonDropDown = newDropDown