Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
How to get text on selected node in treeview.

Thanks.
Posted

See here:
http://msdn.microsoft.com/en-US/library/system.windows.forms.treenode.text%28v=vs.80%29.aspx#Y912[^]
simply:
VB
string text = treeView1.SelectedNode.Text
 
Share this answer
 
v2
Comments
Deepak Manuja 3-Apr-12 1:56am    
its not working when selectednodechanged event fires. It shows blank always.
Maciej Los 3-Apr-12 14:34pm    
So, debug your programm and get the reason...
... or show us selectednodechanged event code block.
Maciej Los 3-Apr-12 14:34pm    
Good link. My 5!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900