Specifies a Drag&Drop processing mode for a Drop Source object

Property of

Many Form objects

Description

Use dragEffect to enable or disable dragging for a Drop Source object, and to specify the default drag processing mode.

Each time a Drag&Drop operation is attempted for a Drop Source object, the value of dragEffect and the state of the Control key are evaluated. The following table shows the possible values for dragEffect, and the effect of the Control key on the resulting operation:

dragEffect

Control key

Operation type

0 - None (default)

N/A

None (dragging disabled)

1 - Copy

(ignored)

Copy

2 - Move

up

Move

2 - Move

down

Copy

 

An object becomes an active Drop Source when the value of its dragEffect property is set greater than 0. Similarly, an object becomes an active Drop Target when its allowDrop property is set to true. Except for forms, all Drop Target objects may also be Drop Sources.