title: Performance of changing the position of hundreds of WinForms controls
body: <p>I have a loop:</p>
  
  <pre><code>for (int i = 0; i &lt; panel1-&gt;Controls-&gt;Count; ++i) {
      Control^ ctl = panel1-&gt;Controls[i];
      ctl-&gt;Location.Y = i*10;
  }
  </code></pre>
  
  <p>Is it okay if I have 200 or 300 controls in panel1?
  Or it will be better if I add this:</p>
  
  <pre><code>if (ctl-&gt;Location.Y != i*10) ctl-&gt;Location.Y = i*10;
  </code></pre>
  
  <p>I just don't know if .NET's controls will repaint anyway (it will take time) or they will automatically check if there is no need to repaint (still same location)</p>