Hylton,
In .NET 2.0, you can call the HitTest method on the TreeView to get a
TreeViewHitTestInfo class instance which will have the node that the point
passed to the HitTest method points to (if there is one).
If not in .NET 2.0, you will have to call SendMessage through the
P/Invoke layer, passing the TV_HITTESTINFO message to get the location of
the the node at the specified coordinates.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Hylton" <Hy****@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
Hi
In a treeview How do I get the node that the user right clicked on. I need
to modify the contecxt menu based on the node