3
votes

How can I get local position of cursor?

I want (0,0) point to be in top left corner of my window, not the whole screen.

1

1 Answers

5
votes

Cursor.Position class.

If you want to map global mouse position to your window relative position, then use:

YourFormControl.PointToClient(Cursor.Position)