Share via


DragDropEnabled Property

Topic Last Modified: 2006-11-30

The DragDropEnabled property specifies whether or not the drag-drop functionality of the TreeView control is enabled. The default value is True. The DragDropEnabled property applies to ExchangeTreeViewControl Class.

Syntax

Property DragDropEnabled As Boolean
bool DragDropEnabled

Remarks

If the value is set to True, then the drag-drop functionality of the TreeView control is enabled. This is the default value.

If the value is set to False, then the drag-drop functionality of the TreeView control is disabled.

Example

In the following Visual Basic .NET example, the DragDropEnabled property is set to False, disabling the drag-drop functionality of the TreeView control.

myTreeViewControl.DragDropEnabled = False

In the following C# example, the DragDropEnabled property is set to False, disabling the drag-drop functionality of the TreeView control.

myTreeViewControl.DragDropEnabled = False;