Double Click in a Treeview

lcanb006

New member
Joined
Mar 2, 2005
Messages
3
Programming Experience
Beginner
I need help with double clicking a node in Treeview1, and then performing a cut and paste to TreeView2.
I have code that removes the node from TV1, but I get a message that I cannot add or insert the item in more than 1 location. Must first remove it from its current location or clone it.

I tried writing a separate sub and passing the item to it, but still didn't work.

I am a little new to programming, so bear with me. Any help would be appreciated.

Thanks,
lcan
 
That error message sounds pretty clear to me. One node cannot be part of two different trees. You must either remove it from the first tree and then insert into the second if you want to move it, or call Clone to create a copy to insert into the second tree.
 
Back
Top