Updating Timers.Interval on every Tick

Hi there,
I'm using System.Timers.Timer and I want my Interval to change every single time (for the use of showing timed subtitles).
For the first time I'm using this code:
timer1 = new system.timers.timer(); timer1.interval = 1000; timer1.elapsed += elapsed1; timer1.enabled = true;

elapsed1 code:
printSubtitle(_subs,0); _timer1.Stop();

printSubtitle code:
timer1 = new system.timers.timer(); timer1.interval = 2000; timer1.elapsed += new system.timers.elapsedEventHandler(elapsed1); timer1.enabled = true;

My timer keeps displaying my subtitles every 1000 millis...
Do you have any idea what do I need to do other than declaring a new Timer, setting enabled to false and assigning a new eventHandler?
Thanks.

Sign In or Register to comment.