title: How to prevent a Windows Forms TextBox from flickering on resize?
body: <p>There are plenty of articles addressing flicker in Windows Forms. The majority recommend setting <code>DoubleBuffered = true</code> or setting a bunch of <code>ControlStyle</code> flags. However, none of these help reduce a TextBox flickering.</p>
  
  <p>Here are a couple of related questions:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/76993/how-to-double-buffer-net-controls-on-a-form">How to double buffer .NET controls on a form?</a></li>
  <li><a href="https://stackoverflow.com/questions/64272/how-to-eliminate-flicker-in-windows-forms-custom-control-when-scrolling">How to eliminate flicker in Windows.Forms custom control when scrolling?</a></li>
  </ul>
  
  <p>To reproduce the issue, create a new WinForms project, add a <code>TextBox</code>, enable multi-line, disable word-wrap, add a bunch of text, set <code>Anchor</code> to Left+Right+Top+Bottom. Now run and resize. The text flickers. For text boxes inside a couple of nested <code>TableLayoutPanel</code>s the flicker on resize is even worse.</p>
  
  <p>Applying the solutions proposed in the above questions at best do not fix the flicker; if I get experimental and set the protected <code>ControlStyle</code> on <code>TextBox</code> I can break it completely (by enabling <code>UserPaint</code>) but not eliminate the flicker.</p>
  
  <p>So, is there any way at all to fix the flickering of the text in a TextBox?</p>