Analysis of C Default Double Buffer Technology

  • 2021-06-28 09:40:18
  • OfStack

This article describes C#default double buffer technology as an example.Share it for your reference.Specifically as follows:


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();
      // Activate Default Double Buffer Technology Method 1 : 
      //this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
      //this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
      // Activate Default Double Buffer Technology Method 2 : 
      base.DoubleBuffered = true;
    }
  }
}

I hope that the description in this paper will be helpful to everyone's C#program design.


Related articles: