title: Avoid Flickering in Windows Forms?
body: <p>Double buffering not working with combo-box.
  is there any another methods to avoid flickering in windows forms?</p>
  
  <p>i have one windows form with number of panels in it. I'm showing only one panel at a time based on my menu selection.</p>
  
  <p>i have one icon panel,one header panel and the combo box. based on the selected item of that combo-box the gridview1 and 2 are filling. when I'm rapidly selecting the combo-box item using my keyboard down arrow the icon panel and the header panel are always repainting. i need to keep that both without any change. this two panels producing some flashing effect(ie,they are blinking or flashing) while I'm changing the combo box selected index. is there any way to avoid this flashing.? i tried double-buffered enabled in form constructor and form load event.
  Please Help..............</p>
  
  <pre><code>InitializeComponent();
                  this.SetStyle(ControlStyles.DoubleBuffer, true);
                  this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                  this.SetStyle(ControlStyles.UserPaint, true);
                  this.SetStyle(ControlStyles.SupportsTransparentBackColor, false);
                  this.SetStyle(ControlStyles.Opaque, false);
                  this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
                  this.SetStyle(ControlStyles.ResizeRedraw, true);
  </code></pre>
  
  <p>i tried this code in form constuctor and form load event</p>