Double Buffer Winforms Control

In the constructor, after initialisation, add this code:


// For a Panel
typeof(Panel).InvokeMember("DoubleBuffered", BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic, null, panelNameHere, new object[] { true });


Comments