ListBox.EnableDragReorder

From Xojo Documentation

Property (As Boolean )
aListBox.EnableDragReorder = newBooleanValue
or
BooleanValue = aListBox.EnableDragReorder

Supported for all project types and targets.

If True, you can reorder rows within the ListBox by dragging rows.

Notes

An insertion line indicator appears when dragging within the ListBox to provide you with visual feedback as to where the row would be dropped if you release the mouse button.

fa-info-circle-32.png
You cannot drag rows on a hierarchical ListBox. Setting this property to True has no effect on a hierarchical ListBox.

Example

This example enables the drag reorder feature.

Me.EnableDragReorder = True