Removing first TreeNode of TreeView removes all TreeNodes

Removing first TreeNode of TreeView removes all TreeNodes

Post by gromp » Wed, 27 Sep 2006 21:01:49


.NET CF 1.0 SP3, PocketPC 4.20.0.14053, Device: Intermec CN2B

I have a TreeView with four TreeNodes at the first level. each of those
TreeNodes has several childnodes. If I remove the first TreeNode with
me.tree.nodes.remove(me.tree.nodes(0))
all nodes will be removed. but this happens only, if I remove the first
node. if I remove the second node, only the second node is removed.
Any suggestions?