StableVersion4.3/HL_FristAidPlatform_Public/OverwritePanel.cs

29 lines
967 B
C#
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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); // 双缓冲
}
}
}