Refresh Problem

DALIEN51

Registered User.
Local time
Today, 07:08
Joined
Feb 26, 2004
Messages
77
Hi All!

Can anyone help with the following problem?

When clicking a button on a form the code behind that button minimizes that form and loads a second form which just has a label on it stating "Please Wait........" and then my database carries out a number of functions. However, it takes a long time for the "Please Wait...." message to appear and so the user has a blank screen for some time. Is there any way of delaying the database carrying out any other action until the "Please Wait..." message is visible? I have tried:

FORMS![FRM_WAIT].REFRESH

but this does not work. Any ideas most appreciated.

Regards.
 
Search the forum for my Pause() function [use my user name in your search]. It works better for your situation than the Sleep() API. You need to reorder your events to something like this...

1) Open your FRM_WAIT form
2) Pause(1) 'call my pause function for one second
3) Minimize your main form. Skip this step!
4) Run your numerous functions
5) Close the FRM_WAIT form

Personally, I would skip step three since the user normally likes to see stuff on their screen.

The FRM_WAIT form should have its properties set to PopUp and Modal set to YES!
 
Many Thanks!

Thank you very much for your assistance Ill give it a try!

Regards.
 
You can also try

FORMS![FRM_WAIT].Repaint

This forces windows to physically draw the frame instead of waiting till windows tosses the DRAW signal to the window.
 

Users who are viewing this thread

Back
Top Bottom