解决winform中重绘时控件闪烁的问题

控件的双缓冲属性是隐藏的,需要手动开启

 

panel1.GetType().GetProperty("DoubleBuffered",System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(panel1, true, null);

 

posted @ 2022-05-05 12:51  陈铖chenc  阅读(294)  评论(0)    收藏  举报