Save a treeview on child form?

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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.
This topic is 6 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
dan.potter
Posts: 709
Last visit: Wed Nov 14, 2018 11:39 am

Save a treeview on child form?

Post by dan.potter »

I have a child form that loads a tree from vmware. The child form may be opened multiple times. Each time it's opened I want keep the previous view instead of loading the tree again. Is this possible?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Save a treeview on child form?

Post by jvierra »

You can save the form to a global and redisplay it when needed. It will remember all values contained. Be sure that the load can detect the second time it is displayed.
User avatar
dan.potter
Posts: 709
Last visit: Wed Nov 14, 2018 11:39 am

Re: Save a treeview on child form?

Post by dan.potter »

Thanks!
This topic is 6 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked