Timer to extract count of database

brucelim80

Active member
Joined
Apr 20, 2006
Messages
35
Programming Experience
Beginner
Hi everyone,

I need some advise on function and code for the following scenario;

- I have a database with records
- i need to display the total number of count on the textbox of the form every 3 sec

how do i write a code with a timer to update the count onto the textbox every 3 sec?
I know how to extract the count from the database. Please kindly enlighten me on the timer


Thank you


:confused:
 
Just add a timer to your form from the toolbox. All you do is set the interval, then on the TICK event put your code.

I would suggest running the code in a thread though to not slow down your form performance.
 
Thank for your great help.
Can i ask another favour from you.

how do i run it on a thread?
Do you have a website example.


Thank again
 
Back
Top