Displaying a timer during code and/or query execution

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need help adding in my custom made status board form a text box to display
a timer with the seconds or maybe the milliseconds if possible, visible to
the user of the database when the database is running something in the
background to assure the user that the application is still doing something
not frozen (Kind of like a status bar).
 
The easiest way to do this is to change the cursor to an hourglass and put
some text in a label control to indicate the status.

If you know "how long" something is going to take (for instance if you are
looping through records in a table, or have several steps, you could create
two boxes (not textboxes) with different fill colors. One box is to display
the percent complete, the other to display the percent incomplete. If you
use this technique, you have to constantly recompute the width of the two
controls, and their left position, but this is not extremely difficult.

HTH
Dale
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top