.paul.
Thanks for the response, sorry for taking so long to return to this.
I'm just looking at this again and can't seem to get it working.
How does it know which TreeView it is expanding/collapsing after refresh..?
Thank you.
Edit:
I have changed the code in the 'For' to:
vb Code:
TreeView1.Nodes(n.Name).Expand()
To refer to the TreeView, I have tried removing the 'AfterCollapse' handler during the fresh so it doesn't mess with the list. But I still can't get this to work...
Thanks again.
Edit 2:
I should probably note that some of the nodes will have the same 'name', this may be causing issues...
Thanks




Reply With Quote