title: C# Timer Start and Stop
body: <p>I did a button, and when u click on the button, it will start the <code>Timer1.Start();</code></p>
  
  <p>And when u click again on the same button, it will stop the <code>Timer1.Stop();</code></p>
  
  <p>I tried</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
      {
          timer1.Start();
          else
          {
              timer1.Stop();
          }
      }
  </code></pre>
  
  <p>And the code above is not working, i get always error.</p>
  
  <p>So if i click on the button, timer will run, if i click again on the same button, timer will stop.</p>