using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms;namespace FED { public class DoubleBufferListView : ListView { public DoubleBufferListView() { SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true); UpdateStyles(); } }} 用这个代替LISTVIEW
刷新的代码;
this.SuspendLayout(false);试试吧,不一定行。
Timer1.Enabled = false;
RefreshListView();
Timer1.Enabled = true;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;namespace FED
{
public class DoubleBufferListView : ListView
{
public DoubleBufferListView()
{
SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
UpdateStyles();
}
}}
用这个代替LISTVIEW