VB6 NodeClick Treeview event. In Vb.NET?

bdani82

Member
Joined
Jun 7, 2004
Messages
22
Programming Experience
3-5
Hello. My English is not very well... I'm an Italian Boy... sorry...

Is there a way to reproduce in VB.Net the NodeClick event of VB6 treeview?

Thanks!
 

Paszt

Staff member
Joined
Jun 3, 2004
Messages
1,500
Location
Raleigh, NC - USA
Programming Experience
Beginner
You can use the click event of the treeView along with the SelectedNode to tell which node was clicked.

Also available is the AfterSelect event which has a System.Windows.Forms.TreeViewEventArgs class as one of the parameters. The node property of that parameter tells which node was selected. This event will work for the selection of a node with the mouse as well as any other method that will change the selectedNode (arrow keys, code, ...)
 
Top Bottom