Display window telling user to wait while program initilizes
Posted on 2003-10-23
When my program is loaded for the first time, like any other it has a few tasks to complete before the user can begin using it (i.e. loading some configuration files and creating some OLE objects).
During this time, I would like to display a windows with no buttons, telling the user to wait while the configuration is initilized. When the tasks have finished, I want the window to disappear, and have the program load the main form.
What is the best way to do this?
I created a form called LoadingObjectsMess that has one label field giving the user a message to wait. Before start the configuration process back in Main, I used the command:
Set Mess = New LoadingObjectsMess
My display method simply makes the form visible, then sets the value of the only label on the form to equal the "Please wait" message. When the configuration tasks complete I use the command:
The Clear method simply unloads the form using the Unload.Me statement.
For some reason when the program loads, only the outline of the message box form is drawn with a transparent inside, and it never displays the "Please wait" message until the initilization task are complete.
This does me no good.
Am I going about this the correct way, or is there another way to accomplish this more logically?