by Phobos (6 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
This projects demonstrates how you can detect Mouse Over and Exit events on a form using a class module.
Side Effects
When used in your own projects please ensure that you exit the class before closing the form.
API DeclarationsPrivate Declare Function GetCursorPos Lib "User32" (lpPoint As POINTAPI) As Long
Private Declare Function WindowFromPoint Lib "User32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long
Download MouseOver/Exit Class (169 KB)