In the constructor, after initialisation, add this code:
// For a Panel
// For a Panel
typeof(Panel).InvokeMember("DoubleBuffered", BindingFlags.SetProperty | BindingFlags.Instance |
BindingFlags.NonPublic, null, panelNameHere, new object[] { true });
Comments
Post a Comment