标签:lag for 部分 type you binding ntp pre code
//设置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); }
C# VS2017 winForm 使tableLayoutPanel 不闪烁
标签:lag for 部分 type you binding ntp pre code
原文地址:https://www.cnblogs.com/nb08611033/p/8960870.html