Friday, August 15, 2008

C# GDI double buffer to stop screen flick

The code is really simple.

this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint , true);
this.UpdateStyles();

I assume you know where to put them. Enjoy.

No comments: