I'm writing a vb.net application that will use the treeview control to display info to the users. It works to add a node to the first level nodes, but when trying to add a node to the second level nodes, it adds a node but it has no information assigned to it. The way I add a node to the tree is I create a tree node, then assign information to it, then add it to the tree. I've displayed a message box with information about the treenode and all information is there before its added. My code basically works this way below:
Get info for node0
Get info for node1
Get info for node2
Node2 doesn't get added correctly. All information is correct in Node2 and something does get added to the tree but with no information. Has anyone had this problem before? Thanks for any help.