I'm launching a contextmenustrip using its show method but am struggling to show it at the current mouse position.
if I use MousePosition in the call to Show it shows nowhere near. Instead I've been writing the x and y coordiantes of the mouse to module variables in the form's mouse down event, and then setting the position of the contextmenustrip to them.
This nearly works but is putting the centre of the menu in the x,y I give it. How do i get the menu strip to put the left corner at the provided x,y (or adjust x,y to have the same effect?
Thanks
Andrew
if I use MousePosition in the call to Show it shows nowhere near. Instead I've been writing the x and y coordiantes of the mouse to module variables in the form's mouse down event, and then setting the position of the contextmenustrip to them.
This nearly works but is putting the centre of the menu in the x,y I give it. How do i get the menu strip to put the left corner at the provided x,y (or adjust x,y to have the same effect?
Thanks
Andrew