ColinOL

A Small Website

用户工具

站点工具


wiki:csharp:winform-sx-ct-yyxg

实现窗体的阴影效果

public partial class MyCustomForm : Form
{
    private static Int32 CS_DROPSHADOW = 0x00020000;
 
    protected override CreateParams CreateParams
    {
        get
        {
            CreateParams parameters = base.CreateParams;
            parameters.ClassStyle |= CS_DROPSHADOW;
 
            return parameters;
        }
    }
}
wiki/csharp/winform-sx-ct-yyxg.txt · 最后更改: 2018/02/03 20:42 (外部编辑)