title: Multiple timer with different interval in C#.net
body: <p>I want different timer with different interval that i input.For example, if I input 4, 4 timer create and show time in 4 label, where 1st timer's time change in 1sec,2nd timer's time change in 2sec,3rd timer's time change in 3sec and 4tn timer's time change in 4sec.Here is my code,</p>
  
  <pre><code>        string input = textBox2.Text;
          int n = Convert.ToInt32(input);
          for (i = 1; i &lt;= n; i++)
          {
  
              Timer timer = new Timer();
              timer.Tick += new EventHandler(timer_Tick); 
              timer.Interval = (1000) * (i);              
  
  
              timer.Enabled = true;                      
              timer.Start();                            
  
  
  
              Label label = new Label();               
              label.Name = "label"+i;
              label.Location = new Point(100, 100 + i * 30);
              label.TabIndex = i;
              label.Visible = true;
  
  
              this.Controls.Add(label);
  
          }
       private void timer_Tick(object sender, EventArgs e)
          {
  
               label.Text = DateTime.Now.ToString();
  
  
           }
  </code></pre>
  
  <p>But i don't get any output.What can i do.I use windows application.</p>