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 18岁简短祝福语经典
17 英语简短祝福语给学生
18 六一祝福语简短感动女生