处理红色X按钮 [英] Handling the Red X button

查看:82
本文介绍了处理红色X按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


无论如何都要强迫应用程序处理红色X按钮

不同?我不能使用通用的Closing事件,因为它会阻止系统正常关闭。我希望,当点击

红色X按钮时,它只会最小化窗口,或者只是隐藏它。

解决方案

5月7日下午4:50,melon< elty ... @ gmail.comwrote:


你好,


无论如何强制应用程序处理红色X按钮

不同?我不能使用通用的Closing事件,因为它会阻止系统正常关闭。我希望,当点击

红色X按钮时,它只会最小化窗口,或者只是隐藏它。



处理结束事件,并检查告诉你为什么

应用程序正在关闭的参数。你可以确定它是因为

用户还是因为系统正在关闭。


HTH

Andy


5月7日下午4:52,Andy< a ... @ med-associates.comwrote:


5月7日下午4:50,melon< elty ... @ gmail.comwrote:


你好,


无论如何强制应用程序处理红色X按钮

不同?我不能使用通用的Closing事件,因为它会阻止系统正常关闭。我希望,当点击

红色X按钮时,它只会最小化窗口,或者只是隐藏它。



处理结束事件,并检查告诉你为什么

应用程序正在关闭的参数。您可以确定它是否因为用户或因为系统正在关闭而使用。


HTH

Andy



我是C#的新手。你介意给我看看怎么样?


谢谢。


5月7日下午4:52, Andy< a ... @ med-associates.comwrote:


5月7日下午4:50,甜瓜< elty ... @ gmail.comwrote :


你好,


无论如何都要强迫应用程序处理Red X按钮

不同?我不能使用通用的Closing事件,因为它会阻止系统正常关闭。我希望,当点击

红色X按钮时,它只会最小化窗口,或者只是隐藏它。



处理结束事件,并检查告诉你为什么

应用程序正在关闭的参数。您可以确定它是否因为用户或因为系统正在关闭而使用。


HTH

Andy



你介意给我看看怎么样?我是C#的新手。


谢谢。


P.S.这可能是一个双重帖子。


Hello,

Is there anyway to force the application to handle the Red X button
differently? I cannot use a generic Closing event as it will prevent
the system to shut down properly. I hope that, when clicking on the
red X button it will only minimize the window, or just hide it.

解决方案

On May 7, 4:50 pm, melon <elty...@gmail.comwrote:

Hello,

Is there anyway to force the application to handle the Red X button
differently? I cannot use a generic Closing event as it will prevent
the system to shut down properly. I hope that, when clicking on the
red X button it will only minimize the window, or just hide it.

Handle the closing event, and check the parameter that tells you why
the application is shutting down. You can determine if its because
the user or because the system is shutting down.

HTH
Andy


On May 7, 4:52 pm, Andy <a...@med-associates.comwrote:

On May 7, 4:50 pm, melon <elty...@gmail.comwrote:

Hello,

Is there anyway to force the application to handle the Red X button
differently? I cannot use a generic Closing event as it will prevent
the system to shut down properly. I hope that, when clicking on the
red X button it will only minimize the window, or just hide it.


Handle the closing event, and check the parameter that tells you why
the application is shutting down. You can determine if its because
the user or because the system is shutting down.

HTH
Andy

I am fairly new to C#. Would you mind to show me how?

Thanks.


On May 7, 4:52 pm, Andy <a...@med-associates.comwrote:

On May 7, 4:50 pm, melon <elty...@gmail.comwrote:

Hello,

Is there anyway to force the application to handle the Red X button
differently? I cannot use a generic Closing event as it will prevent
the system to shut down properly. I hope that, when clicking on the
red X button it will only minimize the window, or just hide it.


Handle the closing event, and check the parameter that tells you why
the application is shutting down. You can determine if its because
the user or because the system is shutting down.

HTH
Andy

Would you mind to show me how? I am fairly new to C#.

Thanks.

P.S. This may be a double post.


这篇关于处理红色X按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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