MouseLeave Event

Applies to:  MouseEvents
See also:  MouseEnter event, Window object

Occurs when the mouse pointer is about to leave the visible region of a window.

Syntax:

Public Event MouseLeave(ByRef Window As Window)

The MouseLeave event syntax has these parts:

Part Description
object The name of a MouseEvents object.  NB:  object must be declared using WithEvents.
Window The window from which the mouse pointer is about to leave.

Example:

Trapping mouse events

 

Home Copyright and Disclaimer