如何打开呢?一般控件都从Control集成此DoubleBuffered属性,所以只要重写控件就可以了。
以ListView为例:
public class NewLisetView : System.Windows.Forms.ListView
{
public void setDoubleBuffer()
{
DoubleBuffered = true;
}
//一般控件都从Control集成此DoubleBuffered属性,所以只要重写控件就可以了。
protected override bool DoubleBuffered
{
get
{
return base.DoubleBuffered;
}
set
{
base.DoubleBuffered = value;
}
}
}
{
public void setDoubleBuffer()
{
DoubleBuffered = true;
}
//一般控件都从Control集成此DoubleBuffered属性,所以只要重写控件就可以了。
protected override bool DoubleBuffered
{
get
{
return base.DoubleBuffered;
}
set
{
base.DoubleBuffered = value;
}
}
}