c# 不让窗体显示在alt tab中
时间:2017-04-18 11:34:16
收藏:0
阅读:251
protected override CreateParams CreateParams { get { const int WS_EX_APPWINDOW = 0x40000; const int WS_EX_TOOLWINDOW = 0x80; CreateParams cp = base.CreateParams; cp.ExStyle &= (~WS_EX_APPWINDOW); // 不显示在TaskBar cp.ExStyle |= WS_EX_TOOLWINDOW; // 不显示在Alt+Tab return cp; } }
原文:http://www.cnblogs.com/weloglog888/p/6726578.html
评论(0)