D
Dom
I'm driving myself nuts with this TreeView. I don't want to get into
the error, but I want to give you what I think is the cause of the
error, and then see if anyone more knowledgable can confirm this.
In the statement ...
foreach (TreeNode n in MyTree.Nodes) { NewTree.Nodes.Add ((TreeNode)
n.Clone()); }
.... I think I am just cloning the one node, and not it's children
nodes, or their children nodes, etc.
Now that I spell it out, that really seems right. Can anyone tell me
what I should be doing? Should I just make it all recursive?
Dom
the error, but I want to give you what I think is the cause of the
error, and then see if anyone more knowledgable can confirm this.
In the statement ...
foreach (TreeNode n in MyTree.Nodes) { NewTree.Nodes.Add ((TreeNode)
n.Clone()); }
.... I think I am just cloning the one node, and not it's children
nodes, or their children nodes, etc.
Now that I spell it out, that really seems right. Can anyone tell me
what I should be doing? Should I just make it all recursive?
Dom