This isn't rocket science. You want to know which node was clicked. So, you
want to handle the Click event of the TreeView Control. The only time you
can handle this event is when the mouse is clicked. The MouseEventArgs
passed to the event will tell you the coordinates of the mouse. You then use
those coordinates with the HitTest or the GetNodeAt method, passing those
coordinates to the method, to obtain a reference to the node that was
clicked.
See:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.treeview.aspx
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
Sequence, Selection, Iteration.