本文實例講述了C#默認雙緩沖技術。分享給大家供大家參考。具體如下:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace advanced_drawing{  public partial class Form18 : Form  {    public Form18()    {      InitializeComponent();      //激活默認雙緩沖技術方法一:      //this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);      //this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);      //激活默認雙緩沖技術方法二:      base.DoubleBuffered = true;    }  }}希望本文所述對大家的C#程序設計有所幫助。
新聞熱點
疑難解答