Mouse Position/Command button position

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I relate the X and Y variables in a MouseMove event for a control to
the Position of the control?

It sounds strange, but I want to try and determine where the mouse came from
(e.g. Left of Form)

Cheers,
Steve.
 
FBxiii said:
How do I relate the X and Y variables in a MouseMove event for a control to
the Position of the control?

It sounds strange, but I want to try and determine where the mouse came from
(e.g. Left of Form)


The MouseUp (and MouseDown) events provide the X,Y
coordinates relative to the control's Top and Left position.

Even if you don't care about an individual control clicks,
you still have to use their events because they are what you
clicked on. If you click between controls, then the
(detail?) section's event is triggered.

If you do not need to click on any controls, you can place a
transparent command button over the entire section and use
its event.
 
Back
Top