Hi, If you are using a windows app, you can use a WM_TIMER callback. Other than that you can create a thread that sleeps for a second generates a random number, etc. regards, Rich "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook