You need to set the ToolStripDropDown
's LayoutStyle
property. By default it's ToolStripLayoutStyle.Flow
, but has to be set to ToolStripLayoutStyle.VerticalStackWithOverflow
.
Alternatively, you can also skip creating and configuring a ToolStripDropDown
instance and add the ToolStripItem
s directly to your ToolStripDropDownButton
using its DropDownItems
property:
dropDownButton1.DropDownItems.AddRange(
new ToolStripItem[] { buttonRed, buttonBlue, s, buttonYellow });