Once again I find myself in need of help using the tree view control, I feel that I am becoming some what of a nuisance :sign0013:
What I am attempting to do is use the SelectedNode to indentify the IndexOfNode, which works perfectly for the first level of the tree but returns -1 for the second level because node2's parent is node1.
I've attempted changing the parent of node 2 amongst other things but all without success.
Attached is a small sample program to try and show what I am trying to achieve.
Please help once again :sign0085:
Thanks,
RandomCoder
What I am attempting to do is use the SelectedNode to indentify the IndexOfNode, which works perfectly for the first level of the tree but returns -1 for the second level because node2's parent is node1.
I've attempted changing the parent of node 2 amongst other things but all without success.
Attached is a small sample program to try and show what I am trying to achieve.
Please help once again :sign0085:
Thanks,
RandomCoder