利用反射机制修改TableLayoutPanel的Protected的DoubleBuffered属性,在窗体构造函数中加入如下代码:
private static void SetDouble(Control control)
{
control.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance |
System.Reflection.BindingFlags.NonPublic).SetValue(control, true, null);
}
网友评论