DragItem.DropTop

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aDragItem.DropTop

Supported for all project types and targets.

Distance from the top of the control where the object was dropped.

Sample Code

The following code displays the values of the DropLeft and DropTop properties after the drag. The code is in the DropObject event.

If obj.PictureAvailable Then
Me.Image = obj.Picture
ElseIf obj.FolderItemAvailable Then
Me.Image = Picture.Open(obj.FolderItem)
End If
Label1.Value = Str(obj.DropLeft)
Label2.Value = Str(obj.DropTop)