Many people are having problems with timers and asking about timers. If you want to use a timer in your app. Please follow these suggestion to help insure that you do not have problems.
1) In VB6, Do not Disable and Re-Enable your timer. This will cause your timer to still run after the program is terminated causing the timer function to still run (unless you disable the timer in your unload code).
Upon entering the timer code use
2) You can use more than one timer on a form.VB Code:
Private Sub Timer1_Timer() 'Add your code here End Sub
Seperate your code into each timer that will interrupt on it own interval. Timers should not be confused with timing functions. A timer will interrupt your code on the set intervals so that you may do other things. Timing functions are called to time the elapsed time between set areas in code or time betwwen events happening.
Following these rules will make sure that your problems are not timer issues.




Reply With Quote