------------------------------------------------------
在load中假如如下代码,可以解决
datagridview显示或分页显示数据缓慢的问题
//设置双缓冲,解决datagridview显示数据缓慢
Type type= dataGridView1.GetType();
System.Reflection.PropertyInfo pi =type.GetProperty("DoubleBuffered",
System.Reflection.BindingFlags.Instance |System.Reflection.BindingFlags.NonPublic);
pi.SetValue(dataGridView1, true, null);
------------------------------------------------------
在load中假如如下代码,可以解决
flowLayoutPanel1、tableLayoutPanel1等加载内部控件是闪烁,缓慢问题
flowLayoutPanel1.GetType().GetProperty("DoubleBuffered",System.Reflection.BindingFlags.Instance
|System.Reflection.BindingFlags.NonPublic).SetValue(flowLayoutPanel1,true, null);
|System.Reflection.BindingFlags.NonPublic).SetValue(flowLayoutPanel1,true, null);