title: Zooming image in picturebox centered in a loop
body: <p>I have a WinForms picturebox with the Picture Size Mode set to StretchImage. I need the picturebox to zoom in by 1% every two milliseconds which will use a loop.</p>
  
  <p>The pictureBox must zoom in at the center and scrollbars should not be shown.</p>
  
  <p>This is my current code that doesn't work:</p>
  
  <pre><code>while (Visible) {
      pictureBox1.Width = pictureBox1.Width + 1;
      pictureBox1.Height = pictureBox1.Height + 1;
      Application.DoEvents();
      System.Threading.Thread.Sleep(2);
  }
  </code></pre>
  
  <p>In this code, there is a window, but the image does not move in any way.
  How should this problem be implemented?</p>