mas7004 Posted July 20, 2004 Posted July 20, 2004 Hi, In my project, I want the user to click on a button to open a new form. In this new form, I would like to have a copy of an existing tree with all the current nodes in place. I tried using OOP and pass the tree in the constructor of the new form, but this did work. I also tried passing just the collection of nodes, but this didn't work either. Any thoughts? Thanks, Matt Quote
*Gurus* divil Posted July 20, 2004 *Gurus* Posted July 20, 2004 Passing them should work, but you'll have to make a copy - you can't just have the same set of nodes in one treeview as another. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
mas7004 Posted July 20, 2004 Author Posted July 20, 2004 Passing them should work' date=' but you'll have to make a copy - you can't just have the same set of nodes in one treeview as another.[/quote'] Ok, I was able to make a copy of the tree and pass it to my new form. I then counted the nodes and they came up the same # as my original tree. I even got the name of the root, and this was the same. This is all great, BUT, the nodes are showing up! I just see an empty tree. I even tried refresh() and update(), but no luck. Any thoughts? Thanks, Matt Quote
*Gurus* divil Posted July 21, 2004 *Gurus* Posted July 21, 2004 Might as well post your code here so we can see what's wrong. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.