using System.Windows.Forms; namespace AppleBatch_June.Views { public class DoubleBufferListView : ListView { protected override CreateParams CreateParams { get { CreateParams obj = base.CreateParams; obj.ExStyle |= 33554432; return obj; } } public DoubleBufferListView() { SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer, value: true); UpdateStyles(); } protected override void OnNotifyMessage(Message m) { if (m.Msg != 20) { base.OnNotifyMessage(m); } } } }