Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...