Edit

Share via


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 is false.

    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