(Mike Mitchell)
6/30/2012 6:21:00 PM
So I'm about to start a long process. I therefore set Me.Mousepointer
= vbHourGlass.
However, there's a Cancel button on the form. If I move the mouse over
the Cancel button I want the cursor to revert to a pointer as long as
the mouse remains over it.
But when the mouse is moved off the Cancel button, I want it to again
show the hourglass.
I've experimented a bit with MouseMove, but it all seems a bit
long-winded. I'd have to remember what the current pointer setting is,
in order to revert to it.
I do remember, years ago, seeing code that subclasses a button so that
you get events for MouseEnter and MouseLeave, which would seem more
sensible that MouseMove.
Any neat way of doing it?
Thanks!
MM