winfrom 反射实现ListView 和 DataGridView 双缓冲功能
1 | lv.GetType().GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(dgv, true, null); |
1 | protected override void WndProc(ref Message m) |
1 | this.SetStyle(ControlStyles.DoubleBuffer | |