Answer the question
In order to leave comments, you need to log in
How to create dynamic timers in windows forms C#?
I need to create timers with different intervals dynamically. Right now I have the code:
System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
timer.Interval = 1000;
timer.Tick += new EventHandler(Event_Tick);
timer.Start();
Answer the question
In order to leave comments, you need to log in
var timers = new List();
for(var i =0; i<20; i++){
var nTimer = new Timer(1000);
timersAdd(nTimer);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question