ProjectPSX/ProjectPSX.WinForms/UI/DoubleBufferedPanel.cs
2021-01-15 22:59:05 +01:00

14 lines
377 B
C#

using System.Windows.Forms;
namespace ProjectPSX.Util {
public class DoubleBufferedPanel : Panel {
public DoubleBufferedPanel() {
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
SetStyle(ControlStyles.UserPaint, false);
UpdateStyles();
}
}
}