ToolStrip::AllowItemReorder Property
Gets or sets a value indicating whether drag-and-drop and item reordering are handled privately by the ToolStrip class.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| ArgumentException | AllowDrop and AllowItemReorder are both set to true. |
Set the AllowDrop property to true and set the AllowItemReorder property to false to respond to drag-and-drop behavior you have defined in the Control::DragEnter, Control::DragLeave, and Control::DragDrop events.
Set AllowDrop to false and set AllowItemReorder to true to cause the ToolStrip class to handle drag-and-drop and item reordering automatically. Set AllowItemReorder to true for two ToolStrip objects to allow dragging of items from one ToolStrip to the other. To enable the default drag-and-drop, the ALT key must be pressed during the drag operation.
Setting both AllowDrop and AllowItemReorder to true throws an exception.
Available since 2.0