E
Eric Newton
arg...
the following code calling node.Remove() gives NullReferenceException: and
PS the Node is already added to a TreeView... I promise!
Private Shared Sub ClearFieldNodes(ByVal rootNode As TreeNode)
For Each node As TreeNode In rootNode.Nodes
If TypeOf node.Tag Is Class1 Then node.Parent.Nodes.Remove(node)
Next
End Sub
[bug] or [feature]
^^^^
the following code calling node.Remove() gives NullReferenceException: and
PS the Node is already added to a TreeView... I promise!
Private Shared Sub ClearFieldNodes(ByVal rootNode As TreeNode)
For Each node As TreeNode In rootNode.Nodes
If TypeOf node.Tag Is Class1 Then node.Parent.Nodes.Remove(node)
Next
End Sub
[bug] or [feature]
^^^^