Use a Timer control, or the GetTickCount function (if you don't like using Timers).
[code]