Jan 20, 2010

Flickering free .NET form

To achieve a flickering free form, Only enabling DoubleBuffered property is not gonna work.

You need to add this in the main form:


protected override CreateParams CreateParams {
get {
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000;
return cp;
}
}


This does not speed up the painting process. It just makes your form invisible while the painting process is being done.

Here is the reference: link