mirror of
https://github.com/BluestormDNA/ProjectPSX.git
synced 2025-04-02 10:52:34 -04:00
15 lines
499 B
C#
15 lines
499 B
C#
using System.Windows.Forms;
|
|
|
|
namespace ProjectPSX.Util {
|
|
public class DoubleBufferedPanel : Panel {
|
|
|
|
public DoubleBufferedPanel() {
|
|
this.DoubleBuffered = true;
|
|
this.BackgroundImageLayout = ImageLayout.Stretch;
|
|
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
|
|
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
|
|
//this.SetStyle(ControlStyles.UserPaint, true);
|
|
this.UpdateStyles();
|
|
}
|
|
}
|
|
}
|