ProjectPSX/ProjectPSX.WinForms/UI/DoubleBufferedPanel.cs
2020-06-20 22:42:20 +02:00

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();
}
}
}