29 lines
967 B
C#
29 lines
967 B
C#
using System.ComponentModel;
|
||
using System.Windows.Forms;
|
||
|
||
namespace HL_FristAidPlatform_Public
|
||
{
|
||
public partial class OverwritePanel : Panel
|
||
{
|
||
public OverwritePanel()
|
||
{
|
||
InitializeComponent();
|
||
this.DoubleBuffered = true;//设置本窗体
|
||
SetStyle(ControlStyles.UserPaint, true);
|
||
SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景.
|
||
SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲
|
||
}
|
||
|
||
public OverwritePanel(IContainer container)
|
||
{
|
||
container.Add(this);
|
||
|
||
InitializeComponent();
|
||
|
||
this.DoubleBuffered = true;//设置本窗体
|
||
SetStyle(ControlStyles.UserPaint, true);
|
||
SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景.
|
||
SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲
|
||
}
|
||
}
|
||
} |