Mouse Location on Form with Linked Picture

  • Thread starter Thread starter Gojavid
  • Start date Start date
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?
 
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?
 
Back
Top