title: Slow screen paint in C#
body: <p>I have only put several controls into my main form in C# and I see that each control is drawn very slowly when the form loads. This is very noticeable to user and it's bothering me. I am not creating any controls on run-time, they are inside the form already. I have seen some related questions and found the following suggestion:</p>
  
  <pre><code>this.SetStyle(ControlStyles.UserPaint, true);
  
  this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
  
  this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
  
  this.SetStyle(ControlStyles.ResizeRedraw, true);
  
  this.UpdateStyles();
  </code></pre>
  
  <p>This solution actually causes my form to load even slower. I can't imagine what would happen to the form if it were to contain more than 30 controls.</p>
  
  <p>Any suggestions on what I should do?</p>