标签:win int 灰色 ase over close pre protected inf
只需在winform中插入如下代码
/// <summary> /// 界面关闭键失效 /// </summary> protected override CreateParams CreateParams { get { int CS_NOCLOSE = 0x200; CreateParams parameters = base.CreateParams; parameters.ClassStyle |= CS_NOCLOSE; return parameters; } }
窗口右上角叉号键变灰色
标签:win int 灰色 ase over close pre protected inf
原文地址:https://www.cnblogs.com/zzcmaster/p/12376192.html