System.Windows.Forms.Design.ControlDesigner.EnableDragDrop Method

Enables or disables drag-and-drop support for the control being designed.

Syntax

protected void EnableDragDrop (bool value)

Parameters

value
true to enable drag-and-drop support for the control; false if the control should not have drag-and-drop support. The default is false.

Remarks

The default value of false specifies that a control cannot have children dragged onto it at design time. To allow a control to parent other controls at design time, associate it with a designer that derives from System.Windows.Forms.Design.ParentControlDesigner.

Requirements

Namespace: System.Windows.Forms.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0