DragAndDrop property


Available for all child controls except for IpAddress and ImageList objects.

Read/Write at design time

Specifies whether the object can be a drag-and-drop target (see REMARKS). It can be one of the following values:

TRUE    The object can be a drag-and-drop target.
FALSE  The object cannot be a drag-and-drop target (default).

When this property is set to TRUE and a dragged file is dropped on the control, a WM_DROPFILES message is sent to the control procedure. For more information on how to manage this message, please refer to the MSDN help or download this simple drag-and-drop example.


REMARKS: For Pager objects this property refers to the contained control, while for Header objects it just specifies whether the object allows drag-and-drop reordering of header items.