D
**Developer**
Dim tvn As TreeNode
For Each tvn In rootNode.Nodes
....SNIP
rootNode.Nodes.Remove(tvn)
Next
It does not remove all the nodes that it should remove.
I think when a node is removed it messes up the loop logic.
How can I fix it?
Thanks
For Each tvn In rootNode.Nodes
....SNIP
rootNode.Nodes.Remove(tvn)
Next
It does not remove all the nodes that it should remove.
I think when a node is removed it messes up the loop logic.
How can I fix it?
Thanks
