Assistance Required In Visual Basic 2010

closed account (zb0S216C)
I need help with TreeView's in Visual Basic 2010 Express. Thing is, I don't know how to detect which node was double-clicked. I'm completely new to VB, by the way.

Can anybody with knowledge of VB help?

Wazzak
Last edited on
A TreeView has a double click event, but the individual nodes do not. What you need to do is save the mouse coordinates from the last MouseDown event. Then, in the TreeView's double click event handler, use the TreeView's HitTest or GetNodeAt function to see if a node is at those coordinates. If so, then you have your node.
closed account (zb0S216C)
Nice one, Shacktar.
Topic archived. No new replies allowed.