S
Some Person
All,
I don't have any problems getting the name or text of a root level node.
But when I try to get the subnode text or name, it always fails or returns
empty depending on code.
How do I get a sub node name?
TIA
Private Sub treeView1_NodeMouseClick(ByVal sender As Object, ByVal e As
TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
Dim newSelected As TreeNode = e.Node
MsgBox(newSelected.Name.ToString) 'Returns Root Node Level
MsgBox(newSelected.Nodes(0).Name.ToString) 'Crashes app
End Sub
I don't have any problems getting the name or text of a root level node.
But when I try to get the subnode text or name, it always fails or returns
empty depending on code.
How do I get a sub node name?
TIA
Private Sub treeView1_NodeMouseClick(ByVal sender As Object, ByVal e As
TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
Dim newSelected As TreeNode = e.Node
MsgBox(newSelected.Name.ToString) 'Returns Root Node Level
MsgBox(newSelected.Nodes(0).Name.ToString) 'Crashes app
End Sub