利用反射机制修改TableLayoutPanel的Protected的DoubleBuffered属性
private void Form1_Load(object sender, EventArgs e) { tableLayoutPanel1.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic)
.SetValue(tableLayoutPanel1, true, null); }
参考资料:
http://social.msdn.microsoft.com/Forums/zh-TW/233/thread/16f60c2f-93c2-4f8c-b987-4277fd992f7c/
http://msdn.microsoft.com/zh-cn/library/system.windows.forms.control.doublebuffered.aspx
http://msdn.microsoft.com/zh-cn/library/system.windows.forms.tablelayoutpanel_properties.aspx