I have a problem with the clock timer:
The TimerInterval of Clock1 is set to 10000 initially in the designer.
The app start counting correctly, 10, 20, 30, then, after setting TimerInterval to 1000, the count goes by two instead of 1. As if the timer fires twice every second. Could it be a bug or is it my misunderstanding?
Any help would be very much appreciated.
Thanks a lot, it works. I did not know I had to disable the timer before changing the Interval.
Best regards.
Just I am curious, why this does not work?
It looks weird that I need to disable and enable the timer for every elapsed event, even when it is not necessary.
But I only need to change the interval when count=30. If I do not change the interval the timer gets counting without problems, that is generating timer elapsed events without needing disabling and enabling every time. ???