Version

DisallowDrop Property

Returns or sets a boolean value indicating whether the drag/drop operation should be explicitly disallowed.
Syntax
'Declaration
 
Public Property DisallowDrop As Boolean
public bool DisallowDrop {get; set;}
Remarks

Use this property to cancel the drag/drop operation that is currently in progress.

Because the dragged data may be incompatible with the drop location, a drag/drop operation cannot be explicitly allowed; as such, setting this property to false has no effect.

When this property is set to true, the DropAreaDragDrop event does not occur.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also