📜  停止闪烁 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:44.891000             🧑  作者: Mango

代码示例1
//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 });