public class DoubleBufferedPanel:Panel Thread Safety Public static (Sharedin Visual Basic) members of this type are safe for multithreaded operations. Instance members arenotguaranteed to be thread-safe. Remarks This class calls the necessary methods to enable double-buffered drawing, which eliminates ...
1)启动Panel所在的窗体的DoubleBuffered,将窗体的 DoubleBuffered 设置为true;2)或者开发一个“自定义控件”,在控件中启用 DoubleBuffered。代码框架如下:public partial class CustomControl1 : Control { public CustomControl1() { InitializeComponent(); //启用双缓冲 this.DoubleBuf...
tableLayoutPanel.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic) .SetValue(tableLayoutPanel, true, null);