From Xojo Documentation

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

DesktopUIControl.DropObject(Obj as DragItem, Action as DragItem.Types)

New in 2021r3

Supported for all project types and targets.

The item represented by Obj has been dropped on the control.


The Obj parameter is the object being dragged. The Action parameter specifies the type of drag action.


The following DropObject event handler can handle either a dropped picture or a dropped file. The type of file that it can handle needs to have been specified in a call to AcceptFileDrop prior to the drop, for example, in the Opening event.

If Obj.PictureAvailable Then
Me.Image = obj.Picture
ElseIf Obj.FolderItemAvailable Then
Me.Image = Picture.Open(obj.FolderItem)
End If

See Also

DragItem, DesktopWindow classes.