Click here to Skip to main content
16,015,218 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am loading treeview control with xml and using the naviation url for each node. When I click any node, I need to open new window and redirect to that url which I am loading in teeview. I request please help on this issue.

Thanks
Mahesh.
Posted

There are 2 solutions for this and they can be found here:

http://generally.wordpress.com/2007/11/06/right-click-on-treeview-get-the-node-clicked-at/[^]

Although you might want to use MouseButtons.Left instead of MouseButtons.Right :)

Good luck!
 
Share this answer
 
Look into the TreeView.AfterSelect event, and use TreeViewEventArgs.Node to get the currently selected node.
 
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