PC Review


Reply
Thread Tools Rate Thread

Cloning Treenodes

 
 
Chris
Guest
Posts: n/a
 
      8th Aug 2008
Hi All.

I'm cloning a treenode, like so:

TreeNode trNewTemp = new TreeNode();
trNewTemp = ((((ICloneable)trTempNode).Clone()) as TreeNode);

Now the cloning works- trNewTemp has the same content and properties
as trTempNode. The problem is, the treenode I'm cloning has multiple
childnodes, and childnodes of those childnodes.... it's about 6 deep.
The cloned node only has the root level node, not the childnodes. Is
there a way I can clone the whole treenode, without enumerating all
six levels?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Treenodes Bart Steur Microsoft VB .NET 2 7th Dec 2007 06:06 PM
Why deep cloning? Why shallow cloning? How is this related to references? raylopez99 Microsoft C# .NET 3 6th Aug 2007 09:30 AM
TreeNodes bobbyballgame Microsoft Dot NET Framework Forms 3 29th Jun 2004 04:35 PM
Cloning TreeNodes Question meh Microsoft C# .NET 0 2nd Jun 2004 03:48 AM
XPe cloning (using Microsoft Cloning stuff or Nortons Ghost) heath holcomb Windows XP Embedded 3 12th Mar 2004 09:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:33 PM.