Mousepointer when positioned off of a form
Posted on 2003-02-25
I have a VB6 application performing a function that takes several seconds, triggered by a command button. The form only takes up about a quarter of the screen. I change the mousepointer to vbhourglass in that initial form, while it is executing code to gather and display data on a separate form.
This works fine, if the button is clicked, or if you tab to the button, and use the enter key, as long as the mouse is positioned over the form at the time. If you use the tab/enter, while the pointer is outside the form, on a different application or the desktop, the pointer stays at vbdefault, even if you move the pointer back to the form while to code is still executing.
Is there a way around this, to get the pointer to change to hourglass when postioned over the form ?