title: How to use timer to click buttons in C#
body: <p>How to use timers to trigger click button event every 3 seconds? </p>
  
  <p>I'm trying to rotate 2 pictures in pictureboxes by triggering the rotate button automaticly using timer but it seems doesnt works. I never used timer before so this is my first time. Anyone know whats wrong with my code or any other code suggestion for it? Thanks</p>
  
  <p>Code I'm using</p>
  
  <pre><code>        private void timer1_Tick(object sender, EventArgs e)
          {
              rotateRightButton_Click(null, null);
              pictureBox1.Refresh();
              pictureBox2.Refresh();
          }
          private void timerStartButton_Click(object sender, EventArgs e)
          {
              timer1.Start();
          }
          private void timerStopButton_Click(object sender, EventArgs e)
          {
              timer1.Stop();
          }
  </code></pre>