Reputation: 47
If I use
MessageBox.Show(treeView1.SelectedNode.ToString());
the result is TreeNode: Bob
.
How do I just get Bob
without the TreeNode
?
Upvotes: 0
Views: 4144
Reputation: 6401
Close:
treeView1.SelectedNode.Name
You may want to check if selected node is null too.
Upvotes: 1