你好:
可以尝试一下这个方法:
public class ShadowedForm : Form {
protected override CreateParams CreateParams {
get {
const int CS_DROPSHADOW = 0x20000;
CreateParams cp = base.CreateParams;
cp.ClassStyle |= CS_DROPSHADOW;
return cp;
}
}
// ... other code ...
}
绘制自己的阴影的话可以尝试叠加另外一个form,没有尝试过这样做,建议你还是通过WPF来实现,Winform很难做到很理想的阴影效果。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.