Ikky
Ikky

Reputation: 2856

How is it possible to get the forms mouse position when clicking inside a control?

Problem:

What i want:

Does anybody know how i can do this? I've googled around for this, but can't seem to find anything about it.

Thank you in advance.

Upvotes: 0

Views: 733

Answers (2)

Icono123
Icono123

Reputation: 3950

If you want the position from the entire form just add the width and height of those items to your point.

Upvotes: 0

user117499
user117499

Reputation:

see PointToScreen and PointToClient methods on the control.

Upvotes: 4

Related Questions