Get cursor position with respect to the control – C#

Use Control.PointToClient to convert a point from screen-relative coords to control-relative coords. If you need to go the other way, use PointToScreen.

Leave a Comment