C#默认双缓冲技术实例分析
本文实例讲述了C#默认双缓冲技术。分享给大家供大家参考。具体如下:
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceadvanced_drawing
{
publicpartialclassForm18:Form
{
publicForm18()
{
InitializeComponent();
//激活默认双缓冲技术方法一:
//this.SetStyle(ControlStyles.OptimizedDoubleBuffer,true);
//this.SetStyle(ControlStyles.AllPaintingInWmPaint,true);
//激活默认双缓冲技术方法二:
base.DoubleBuffered=true;
}
}
}
希望本文所述对大家的C#程序设计有所帮助。
热门推荐
10 伴娘祝福语简短朋友的话
11 文艺乔迁祝福语简短精辟
12 生日祝福语男友妈妈简短
13 致敬大国工匠祝福语简短
14 庆祝当生日祝福语简短
15 送病人简短的祝福语
16 英语祝福语大全简短母亲
17 接亲祝福语简短10字
18 自由 生日祝福语简短独特