I have a class, let's call MyClass. In this class, I have a TreeView property let's call myTreeView In my code, I populate the Nodes of this TreeView so I can use it later on. Then, when it's time to actualy use it, I haven't been able to take all the nodes from myClass and put them in a Tree View Control on my form.
I've tried two things:
1.
aTreeView=MyClass.myTreeView
which simply returns nothing (TreeView is empty)
2.
For Each newNode As TreeNode In MyClass.myTreeView.Nodes
aTreeView.Nodes.Add(newNode)
Next
I get the same result here... an empty TreeView
The weird thing is that when debugging, the TreeView in MyClass is well populated with the proper values and in the loop, newNode isn't empty, there's actually something but for some reason it's not showing anything.
Any help would be appreciated,
Thanks