Hey guys/girls
I am having trouble adding Nodes from a TreeView into a TreeViewCollection
My code below:
Dim treeNodes As TreeNodeCollection
For Each node As TreeNode In TreeView1.Nodes
treeNodes.Add(node)
Next
I am getting Object Reference not set to an instance of an Object error... There is no Constructor available for the TreeNodeCollection type. What could be causing this?
Many thanks