Discussion Locked

Arrow and HourGlass on Screen/Monitor

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I wrote a VB6 application that loads about 6 tables before it displays the first modal form. And, that takes about 50 secs or more sometimes
depending upon activities on the network.

How can I convert the Screen/Monitor arrow cursor into an hourglass to alert the user that
there is an activity going on. I mean before the form loads, not after. Therefore "screen.mousepointer = vbHourglass" will not work for me.

3 replies

by jmiller1

Without using a few API's and a lot of code, you can't change the Windows default mouse pointer. The mousepointer property is usually associated with a form. The way to usually handle an extended startup time in an app is to create a Sub Main in amodule. Create a 'Splash Screen' that will display while the other objects are loading. Set the Sub Main as your startup object, and do the following:

Load and display your splash screen.
Change the mousepointer to VBHourglass.
Preload the rest of your objects.
Set the mousepointer back to VBNormal.
Hide (unload) the splash screen.
Display your main form.

This lets the user know that something's going on, rather than staring at a blank screen waiting for your main form.

This discussion is closed to new replies.