关闭任务栏中的表单 [英] close the form in the taskbar

查看:75
本文介绍了关闭任务栏中的表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我在右上角的关闭按钮处禁用了Windows窗体。但它似乎能够在Windows 7的任务栏上关闭表单。如何禁用它?

I have the windows form which is disabled at the close button in the top right corner. But it seems to be able to close the form at the taskbar in windows 7. How to disable it also??

推荐答案

this.ShowInTaskbar = false;

这将阻止System.Windows.Forms.Form应用程序显示在任务栏。

This will prevent the System.Windows.Forms.Form app from showing itself in the taskbar.

您还可以在Visual Studio设计视图中设置此属性。

You can also set this property in the Visual Studio design view.


这篇关于关闭任务栏中的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆