//设置tablelayoutpanel控件的DoubleBuffered 属性为true,这样可以减少或消除由于不停重绘所显示图面的某些部分而导致的闪烁
private void Form_PrintPreview_Load(object sender, EventArgs e) { //开启双缓冲,,改进TableLayoutPanel闪烁问题 TableLayoutPanel1.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(TableLayoutPanel1, true,null); }
标签:
原文地点:https://www.cnblogs.com/nb08611033/p/8960870.html