Treeview: Move Node in Tree up or Down

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
freeman
Posts: 8
Joined: Fri Jan 09, 2015 2:22 am

Treeview: Move Node in Tree up or Down

Post by freeman »

Hello,

What is the most accurate way to move a node up and down with all its subnode in a treeview?
I've one treeview and two buttons "move up" and "move down"

Thanks for help

jvierra
Posts: 14475
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Treeview: Move Node in Tree up or Down

Post by jvierra »

Here is a quick demo of how to move nodes in a treeview. Select an node and use buttons to move up or down.
Attachments
Demo-TreeviewXML_R3.psf
(28.38 KiB) Downloaded 119 times

User avatar
freeman
Posts: 8
Joined: Fri Jan 09, 2015 2:22 am

Re: Treeview: Move Node in Tree up or Down

Post by freeman »

Thanks a lot for the example! :D

Locked