TreeView should be a more straight-foward, easy to understand control...
My current app, is based on this control, and i should have finish it a few weeks ago, but the vacations got in the way, along with some yet to resolve issues...
Now back to work, I need to clear some doubts...
Imagine this tree:
+Default.INI
|--Key01
|--Key02
|--Key03
|--Key04
|--Comment01
+-Category01
XX|-Key05
XX|-Comment02
+-Category02
XX|-Key06
XX|-Comment03
Now let's say I want to move The node "Comment01" up by 2 positions, to setle in beetwen of "Key02" and "Key03"..
I tryed to get the index of the selected node, as one must first select the node to be moved:sign0161:, but i keep getting a value of -1...
This is teh code and its variants I've used just to get the index of the selected node...
Index = Node.IndexOfNode(Tree.SelectedNode)
Index = Tree.IndexOfNode(Node.value)
I want to be ale to move the nodes up and down, always related to its Parent.
My tree wil be no deeper that 2 levels...
Please HELP