WinForm下控件透明,层叠遮盖透明背景问题解决方法
给绘制加个样式
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
//WS_EX_TRANSPARENT
cp.ExStyle |= 0x00000020;
return cp;
}
}
{
get
{
CreateParams cp = base.CreateParams;
//WS_EX_TRANSPARENT
cp.ExStyle |= 0x00000020;
return cp;
}
}