
Drag & Drop from within a Treeview
The subject is kind of misleading. Drag & Drop is not my problem. What I
need is a way to let a user move a node and all of it's children to another
node within the same treeview. Just like moving folder in Explorer. I know
that I can iterate through all of the source nodes children and dynamically
add them under the destination node but this is cumbersome and time
consuming. I'm looking for a way to do something like this.
Dim newNode as Node
set newNode = tvw.Nodes.Add(destinationNode.Index, tvwChild)
set newNode = sourceNode
tvw.Nodes.Remove sourceNode
Obviously this doesn't work (except for: tvw.Nodes.Remove sourceNode).
If anyone knows of a way around looping through all of the children of the
source node, I would appreciate it if you could share it with me.
Thanks in advance