Re-order Nodes in TreeView
Posted on 2004-08-02
In VB6, using the TreeView control:
I need to let the user re-order nodes under a parent node, manually, by drag and drop (question is not about drag and drop details).
When I drop the source node, I can add a copy to the target position and delete the source node. However, this gets complicated when the source node has children.
Unfortunately, the Previous and Next properties of a node are read-only.
What wuld be an elegant method of moving nodes around, under the same parent ?