How to: Enable Reordering of ToolStrip Items at Run Time in Windows Forms
You can enable the user to rearrange ToolStripItem controls on the ToolStrip.
To enable ToolStripItem rearrangement at run time
Set the AllowItemReorder property to
true
. By default, AllowItemReorder isfalse
.At run time, the user holds down the ALT key and the left mouse button to drag a ToolStripItem to a different location on the ToolStrip.
toolStrip1.AllowItemReorder = True
toolStrip1.AllowItemReorder = true;
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET Desktop feedback