Reputation: 6550
I'm trying to find a way to get the mouse position relatively to the upper left corner of a control, is there a way to accomplish that?
Upvotes: 5
Views: 14083
Reputation: 613451
Call MyControl.PointToClient()
passing Cursor.Position
.
Upvotes: 19