In the form I am using the time interval of 5000 for something i need and I need to also have a timer in the same form that has interval of 1000. How to do that?
In the form I am using the time interval of 5000 for something i need and I need to also have a timer in the same form that has interval of 1000. How to do that?
I would suggest setting the timer for the lowest value, then do a count in the timer procedure, using a static variable.
Upon reaching the desired count, do the other procedure you want and then reset the counter variable.
This way you could have dozens and dozens of "somethings" you need to do.
A timer value of 1000 will fire every second. For sure that will be a major pain if nothing else. Every 5 seconds seems bad enough.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
I have a count down timer but it is moving 2 seconds instead of 1 second. the interval is 1000 but it noves 2 seconds at once. say 30 stock 1 second then goes
29-28 in the same time. why is that? how to solve this issue?
Maybe try adding a DoEvents after updating the display.