If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: REORDER NODES IN A TREEVIEW

I have an example of just this thing but is to large to post here. Send me a private message with your email address and I will send you a Zip file. Please refer to the Treeview node moveing up or down so I can remember what your note is talking about.

Re: REORDER NODES IN A TREEVIEW

Sorry this took so long! It's a little scrappy but it works. Remember to put two buttons on the form one fro UP and one for DOWN. This code snippet is for the UP button so all you need to do is basically reverse the process.

Re: REORDER NODES IN A TREEVIEW

Thank you for your interset, Andy, but the code you send me is not exactly what I need : you just switch the key and text values, but the job is not done on the children of the node you move. Your code does if you move UP the NODE_C:

Re: REORDER NODES IN A TREEVIEW

Now you've hit a problem. There is no way to move up or down Nodes with children using Command Buttons. The only I know how move such quantity of nodes is Drag and Drop. If you need help with this just let me know.