即先画到内存图上,后一次性画到窗口上。(防止闪烁)
this.DoubleBuffered = true;//设置本窗体标签:画到,C#,缓冲,技术,SetStyle,ControlStyles,true From: https://www.cnblogs.com/buukma/p/17341448.html
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景.
SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲