Get previous right click position (coordinates) from C# Application?

  • Thread starter Thread starter Jose Luis Suarez Cabrera
  • Start date Start date
J

Jose Luis Suarez Cabrera

Guest
Hello,

I have an small application that is fired from context menu in right click.

Actually, I can get the coordinations/position of the mouse in the point 2 (see the picture below).

1549429.png

I used this code:



FirstXPosition = Cursor.Position.X;

FirstYPosition = Cursor.Position.Y;




Unforunately, I really needed to position in the point 1 (see the picture above) when the user right clicked.

Is it possible to get those coordinates? It is not possible to substract or estimate because the right click some times opens in the top or the bottom.


Thank you!

Continue reading...
 
Back
Top