>You don't have to drop nodeA, just replace its parentkey property to NodeB.key.
Sorry, I can not make it work ...
Lets say this code (in a DragDrop operation)
In MouseDown event of treeview
set nodA = treeview1.SelectedItem (previously declare as node in Declaration)
In DragDrop event of treeview
dim nodB as node
set nodB = treeview1.DropHighlight
nodA.Parent.Key = nodB.key (error: key not unique in collection)
I think I understand this: nodA.Parent.Key = nodB.key is trying to change the key of the parent of nodA and not the relative of nodA. Therefore since the key exists already and that I am trying to set another node key with it, I get this error.
Does that make sense?
Ben Rail
Business Solutions
LOGI.design