title: ProgressBar resets at 60%
body: <p>I have this code:</p>
  
  <pre><code>for(int k = 0; k&lt;11; k++)
  {
      pBar.Maximum = 10;
      pBar.Value = k;
      if (pBar.Maximum == k)
          pBar.Value = 0;
  }
  </code></pre>
  
  <p>However, the problem is, the progressbar gets reset when it is about 60% full. How can I ensure that the progressbar will fill all the way before being reset?</p>