C#解决界面闪烁

添加缓冲:

private void SetDoubleBuffer()
{
base.SetStyle(
ControlStyles.OptimizedDoubleBuffer
| ControlStyles.ResizeRedraw
| ControlStyles.Selectable
| ControlStyles.AllPaintingInWmPaint
| ControlStyles.UserPaint
| ControlStyles.SupportsTransparentBackColor,
true);
}

posted @ 2019-07-15 15:00  搬砖的L先生  阅读(511)  评论(0编辑  收藏  举报