So, I had come up with a way to do double buffering before using a backbuffer and flipping it to the front for a simple game I wrote as a test.
I have just noticed there's a Control.SetStyle method:
this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
this.UpdateStyles();
Executing this in the forms constructor will turn on double buffering the correct way.
Permalink