G
Guest
I have a tree view to which a context menu strip has been assigned.
When the user right clicks the first time on a tree node in the tree view to
show the context menu, it always shows at a position near the top of the tree
view control, not at the tree node where the user is right-clicking.
Once the menu has been shown one time, it will then display at the location
of the tree node where the user is right-clicking.
I have tried various arguments to context menu's Show() method, trying to
force display at a specific location, but I haven't been able to determine
what the screen coordinates are for the selected tree node.
Any ideas?
When the user right clicks the first time on a tree node in the tree view to
show the context menu, it always shows at a position near the top of the tree
view control, not at the tree node where the user is right-clicking.
Once the menu has been shown one time, it will then display at the location
of the tree node where the user is right-clicking.
I have tried various arguments to context menu's Show() method, trying to
force display at a specific location, but I haven't been able to determine
what the screen coordinates are for the selected tree node.
Any ideas?