How to detect when the mouse leaves the form?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank Rizzo

    #1

    How to detect when the mouse leaves the form?

    I have a form with a lot of controls on it. How can I detect when the
    mouse leaves the form? I've tried wiring up a MouseLeave event for every
    single control, but that does not work because those events fire all the
    time as the mouse passes over controls.

    I've tried wiring up form's MouseLeave event, but that does not work
    either because if the mouse leaves the form via one of the controls,
    Form_MouseLeave won't fire.

    Is there a way that actually works.?
Working...