窗体是不出现在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;
}
}
}

最新文章

  1. WCF 4.0 使用说明
  2. Python常用网页字符串处理技巧
  3. Codeforces Round #191 (Div. 2)
  4. stm32 cortext-M3 类型对齐问题【worldsing笔记】
  5. UDP 广播 Java
  6. oracle for update和for update nowait
  7. Codeforces 571B Minimization
  8. List实现行转列的通用方案
  9. [内存管理]管理图解v0.1 v0.2 v0.3
  10. Oracle GoldenGate中HANDLECOLLISIONS参数使用详解
  11. 【原创】09. easyui-tabs 配合 iframe 使用,请求两次等问题
  12. 为table元素添加操作日志
  13. css中的em 简单教程 -- 转
  14. [AHOI2016初中组]迷宫
  15. SQL学习笔记---非select操作
  16. std::vector push_back报错Access violation
  17. GlusterFS配置及使用
  18. 【题解】4465 [Jsoi2013]游戏中的学问
  19. WinForm中执行JS代码(多种方法)
  20. struts2拦截器interceptor的配置方法及使用

热门文章

  1. JDBC连接SQL Server遇到的问题
  2. 20180929 北京大学 人工智能实践:Tensorflow笔记06
  3. 第五讲 自对偶的Yang-Mills方程及Polyakov和t'Hooft解
  4. 【BZOJ 1045】 [HAOI2008] 糖果传递
  5. Codeforces 327A-Flipping Game(暴力枚举)
  6. 深度拷贝java对象
  7. IIS 无法读取配置节"system.web.extensions",由于它缺少节声明
  8. phpMyAdmin出现找不到mysql扩展和Cannot log in to the MySQL server问题
  9. 负载均衡-lvs
  10. UVA Watering Grass