Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Context Menu Position
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Determine Context Menu Position
Miscellaneous
Thread ID:
01336190
Message ID:
01336190
Views:
57
I am displaying a context menu when the user right-clicks on a treeview node. I want to position the top of the menu at the bottom of the selected node and the left of the menu alligned with the left of the node.

The MouseUp event passes 'MouseEventArgs e', from which I can do:
contextMenuStrip1.Show(this, new Point(e.X, e.Y));
The problem is that I need to adjust the top & left a bit so that it is where I want it.
I think what I need to do is determine the top & left coordinates of the selected node.

Anyone know how to do this?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform