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