解决winform中重绘时控件闪烁的问题
控件的双缓冲属性是隐藏的,需要手动开启
panel1.GetType().GetProperty("DoubleBuffered",System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(panel1, true, null);
控件的双缓冲属性是隐藏的,需要手动开启
panel1.GetType().GetProperty("DoubleBuffered",System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(panel1, true, null);