也许很多人也遇到这样的问题,连续不断向listview中加载数据时界面会不停的闪烁,当你用listview.BeginUpdate(); listview.EndUpdate(); 虽然可以减轻一些,但也不能彻底消除闪屏。不信?可以试试下面的代码:
public
partial
class
Form1 : Form
... {
private int counter = 0;
public Form1()
...{
InitializeComponent();
}
DoubleBufferListView lv = new DoubleBufferListView();
ListView lv = new ListView();
private void Form1_Load(object sender, EventArgs e)
... {
private int counter = 0;
public Form1()
...{
InitializeComponent();
}
DoubleBufferListView lv = new DoubleBufferListView();
ListView lv = new ListView();
private void Form1_Load(object sender, EventArgs e)