Does anyone know or a
REAL tutorial on Treeview. Not loading ado, xml, directories, etc. I mean one that
explains the properties of the Treeview control. The above is about all I can find on the internet.
What I am trying to do is add a node to the treeview in a predetermined location. I then want to add two sub-nodes to the one just entered.
Dim oNode As New TreeNode
oNode.Name = "Level1"
TreeView1.Nodes.Add(oNode)
TreeView1.SelectedNode.Name = oNode.Name ==> Getting error here
TreeView1.Nodes.Add("Level1a")
TreeView1.Nodes.Add("level1b")
oNode = Nothing
The error is "NullReferencException was unhandeled." and "Object reference not set to an instance of an object."
Any tutorial on this subject would be greatly appreciated.