Use DoubleBuffer to remove flickering in Windows Forms.

By [)ia6l0 iii

Windows forms experience flickering during their load or some resource intensive operations. You can buffer the drawing process using the DoubleBuffer property.

Code:

this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer |  ControlStyles.UserPaint |   ControlStyles.AllPaintingInWmPaint, true);
//call update styles
this.UpdateStyles();


Windows forms experience flickering during their load or some resource intensive operations.  You can buffer the drawing process using the DoubleBuffer property.

Related FAQs

Invoke the BeginUpdate method before you add itesm to the ListView and call the EndUpdate method after you add the items.
Use the ampersand symbol before the hotkey. For e.g If the button caption is "Click" and if you want "l" to be the hot key, Type "C&lick" in the Text property of the button. If you press Alt + L , the click event of the button will be fired.
Create properties in child windows form and access them.
Use DoubleBuffer to remove flickering in Windows Forms.  (1415 Views)