From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

DesktopWindow.DragOver(x as Integer, y as Integer, Obj as DragItem, Action as DragItem.Types) As Boolean

New in 2021r3

Supported for all project types and targets.

Fires when the DragItem is over the DesktopWindow.


The coordinates x and y are relative to the DesktopWindow. Returns a Boolean. Return True from this event to prevent the drop from occurring.

The Action parameter specifies the type of drag action (default, copy, move or link).