📅  最后修改于: 2022-03-11 14:48:44.891000             🧑  作者: Mango
//How to stop flickering
//This answer is same for PictureBox, Form, Panel and etc.
//First, add this library.
using System.Reflection;
//change "MyPanel" with your panel name.
typeof(Panel).InvokeMember("DoubleBuffered", BindingFlags.SetProperty| BindingFlags.Instance | BindingFlags.NonPublic, null, MyPanel , new object[] { true });