flowLayoutPanel1.GetType().GetProperty ("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic) .SetValue(flowLayoutPanel1, true, null);
很多人在解决控件闪屏时,加了双缓冲还是没有效果,其实是代码加的地方不对。
flowLayoutPanel1.GetType().GetProperty ("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic) .SetValue(flowLayoutPanel1, true, null);
很多人在解决控件闪屏时,加了双缓冲还是没有效果,其实是代码加的地方不对。