Mouse Location on Form with Linked Picture

G

Gojavid

I'm trying to pinpoint the mouse location on a form while moving the
mouse over a picture. Does anyone know how to grab the form mouse
location rather than the picture mouse location in a situation such as
this?

Currently I'm capturing the mouse location from the image On Mouse
Move event and I can't get the location, once over the picture, from
the Form On Mouse Move event.

Any ideas?
 
D

Dirk Goldgar

Gojavid said:
I'm trying to pinpoint the mouse location on a form while moving the
mouse over a picture. Does anyone know how to grab the form mouse
location rather than the picture mouse location in a situation such as
this?

Currently I'm capturing the mouse location from the image On Mouse
Move event and I can't get the location, once over the picture, from
the Form On Mouse Move event.

Any ideas?


How about adding the image control's Left and Top properties to the X and Y
values passed to the control's MouseMove event?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top