title: Seconds CountDown Timer
body: <p>I have a lblCountdown with an int value of 60. I want to make the int value of the lblCountDown decrease with seconds until it reaches 0.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>   private int counter = 60;
      private void button1_Click(object sender, EventArgs e)
      {
          int counter = 60;
          timer1 = new Timer();
          timer1.Tick += new EventHandler(timer1_Tick);
          timer1.Interval = 1000; // 1 second
          timer1.Start();
          label1.Text = counter.ToString();
      }
  
      private void timer1_Tick(object sender, EventArgs e)
      {
          counter--;
          if (counter == 0)
  
              timer1.Stop();
              label1.Text = counter.ToString();
  
      }
  </code></pre>