C#解决界面闪烁

原文链接: https://www.cnblogs.com/LCLBook/p/11188944.html
private void SetDoubleBuffer()
{
base.SetStyle(
ControlStyles.OptimizedDoubleBuffer
| ControlStyles.ResizeRedraw
| ControlStyles.Selectable
| ControlStyles.AllPaintingInWmPaint
| ControlStyles.UserPaint
| ControlStyles.SupportsTransparentBackColor,
true);
}

 

你可能感兴趣的:(C#)