I
I
Ingvar Von Bjork2016-01-12 01:59:57
Mouse
Ingvar Von Bjork, 2016-01-12 01:59:57

How to determine mouse coordinates over an element?

We need to get the mouse coordinates over the pictureBox element. How can this be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ingvar Von Björk, 2016-01-12
@DeboshiR

Solution: create a mouseMove event for the element and then the mouse coordinates in this event are in eX and eY

I
Igor Emelyanov, 2016-01-12
@MAGISTR_BRU

Point p = pictureBox.PointToClient(Cursor.Position);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question