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# 用户控件 背景色透明
最新推荐文章于 2021-06-30 13:12:33 发布