Q:http://topic.csdn.net/u/20071205/15/116fa433-69bc-418d-a31c-3c279abc8007.html
A:
public partial class Form1:form ... {Class Doublebufferlistview:listview ... {public Doublebufferlistview () ... {SetStyle (controlstyles.doublebuffer| Controlstyles.optimizeddoublebuffer |
Controlstyles.allpaintinginwmpaint, True);
UpdateStyles (); } public Form1 () ...
{InitializeComponent ();
} doublebufferlistview LV = new Doublebufferlistview (); private void Form1_Load (object sender, EventArgs e) ... {this.
Controls.Add (LV); Lv.
Height = 300; Lv.
Width = 300; New System.Threading.Thread (New System.Threading.ParameterizedThreadStart (Doadd)).
Start (); } void Doadd (Object obj) ... {if (this. invokerequired) ... {this. Invoke (New system.action<object> (Doadd), new object[] ...
{obj}); else ... {for (int i = 0; i < i++) ... {THIS.LV.ITEMS.ADD (New ListViewItem ("JInjazz "+ this.lv.Items.Count.ToString ()));
System.Threading.Thread.Sleep (10);
Application.doevents (); } } } }