public UserControl()
{
InitializeComponent();
SetStyle(ControlStyles.Opaque | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
}
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x20;
return cp;
}
}
C# 用户控件 背景色透明
最新推荐文章于 2024-02-14 10:51:51 发布