窗体是不出现在Alt+Tab中(窗体不出现在任务管理器中的应用程序列中)
2024-08-29 05:54:58
窗体是不出现在Alt+Tab中和不出现在任务管理器中的应用程序中
重写 CreateParams即可:
public class MyForm : Form
{
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;
}
}
}
最新文章
- WCF 4.0 使用说明
- Python常用网页字符串处理技巧
- Codeforces Round #191 (Div. 2)
- stm32 cortext-M3 类型对齐问题【worldsing笔记】
- UDP 广播 Java
- oracle for update和for update nowait
- Codeforces 571B Minimization
- List实现行转列的通用方案
- [内存管理]管理图解v0.1 v0.2 v0.3
- Oracle GoldenGate中HANDLECOLLISIONS参数使用详解
- 【原创】09. easyui-tabs 配合 iframe 使用,请求两次等问题
- 为table元素添加操作日志
- css中的em 简单教程 -- 转
- [AHOI2016初中组]迷宫
- SQL学习笔记---非select操作
- std::vector push_back报错Access violation
- GlusterFS配置及使用
- 【题解】4465 [Jsoi2013]游戏中的学问
- WinForm中执行JS代码(多种方法)
- struts2拦截器interceptor的配置方法及使用
热门文章
- JDBC连接SQL Server遇到的问题
- 20180929 北京大学 人工智能实践:Tensorflow笔记06
- 第五讲 自对偶的Yang-Mills方程及Polyakov和t'Hooft解
- 【BZOJ 1045】 [HAOI2008] 糖果传递
- Codeforces 327A-Flipping Game(暴力枚举)
- 深度拷贝java对象
- IIS 无法读取配置节&;quot;system.web.extensions&;quot;,由于它缺少节声明
- phpMyAdmin出现找不到mysql扩展和Cannot log in to the MySQL server问题
- 负载均衡-lvs
- UVA Watering Grass