Results 1 to 4 of 4

Thread: TreeView - Remember all expanded nodes

Threaded View

  1. #3

    Thread Starter
    Hyperactive Member squatman's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    337

    Re: TreeView - Remember all expanded nodes

    .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:
    1. 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
    Last edited by squatman; Oct 22nd, 2014 at 06:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width