title: Change image in picturebox every second C#
body: <p>I'm creating a WinForm application that takes a person's photo with a webcam and am trying to now create a countdown effect. I have 4 images that i would like to cycle through but this is proving quite tricky to accomplish.</p>
  
  <p>I'm using a timer for the seconds, but all that's happening is the app lags a bit and then the last image shows. Does anybody know how i might accomplish this?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>        int counter = 0;
          // start the counter to swap the images
          tmCountDown.Start();
          while (counter &lt; 4)
          {
              // holding off picture taking
          }
          // reset counter for timer
          counter = 0;
          tmCountDown.Stop();
  
      /// &lt;summary&gt;
      /// timer event to switch between the countdown images
      /// &lt;/summary&gt;
      /// &lt;param name="sender"&gt;&lt;/param&gt;
      /// &lt;param name="e"&gt;&lt;/param&gt;
      private void tmCountDown_Tick(object sender, EventArgs e)
      {
          counter++;
          //MessageBox.Show("c:/vrfid/apppics/" + counter + ".jpg");
          pbCountDown.Image = new Bitmap("c:/vrfid/apppics/" + counter + ".jpg");
      }
  </code></pre>