12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace GUI
- {
- public partial class DoubleBufferedPanel : Panel
- {
- public DoubleBufferedPanel()
- {
- DoubleBuffered = true;
- SetStyle(
- ControlStyles.UserPaint |
- ControlStyles.AllPaintingInWmPaint |
- ControlStyles.DoubleBuffer, true);
- }
- protected override void WndProc(ref Message m)
- {
- base.WndProc(ref m);
- }
- }
- }
|