使表单不关闭/处理在.NET 1.1中关闭事件的单击 [英] Making a form to not close / Handling the click for closing eventin .NET 1.1

查看:58
本文介绍了使表单不关闭/处理在.NET 1.1中关闭事件的单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当单击右上角的X时,有没有办法让表单*不关闭?


是否有处理X点击的事件(例如执行其他操作)?

Is there any way to make a form *not closing* when its X on the upper-right is clicked?

Is there any event for handling clicks on the X (e.g. to perform additional actions)?

推荐答案




看看:
http ://msdn.microsoft.com/library/de...ancelEventArgs 有一个名为Cancel的成员,您可以将其设置为true。我不认为你可以附加到''X'的任何直接处理程序。史蒂夫Ioannis Vranos < iv*@remove.this.grad.com>在messagenews中写道:%2 **************** @ TK2MSFTNGP10.phx.gb l ...>当点击上右上角的X时,有没有办法让表格*不关闭?>>是否有任何处理X点击的事件(例如,对于执行的执行)?

Hi,

Have a look at:
http://msdn.microsoft.com/library/de...ancelEventArgs has a member called Cancel you can set to true. I don''tthink there''s any direct handler you can attach to the ''X''.Steve"Ioannis Vranos" <iv*@remove.this.grad.com> wrote in messagenews:%2****************@TK2MSFTNGP10.phx.gb l...> Is there any way to make a form *not closing* when its X on theupper-right is clicked?>> Is there any event for handling clicks on the X (e.g. to performadditional actions)?


Steve McLellan写道:
Steve McLellan wrote:

请看看:
http://msdn.microsoft.com/library/de...ancelEventArgs 有一个名为Cancel的成员,你可以设置为真正。我不认为你可以附加到''X'的任何直接处理程序。史蒂夫Ioannis Vranos < iv*@remove.this.grad.com>在messagenews中写道:%2 **************** @ TK2MSFTNGP10.phx.gb l ...>当点击上右上角的X时,有没有办法让表格*不关闭?>>是否有任何处理X点击的事件(例如,对于执行的执行)?
Hi,

Have a look at:
http://msdn.microsoft.com/library/de...ancelEventArgs has a member called Cancel you can set to true. I don''tthink there''s any direct handler you can attach to the ''X''.Steve"Ioannis Vranos" <iv*@remove.this.grad.com> wrote in messagenews:%2****************@TK2MSFTNGP10.phx.gb l...> Is there any way to make a form *not closing* when its X on theupper-right is clicked?>> Is there any event for handling clicks on the X (e.g. to performadditional actions)?



首先是一个有用的评论。你的客户在发送邮件时显然没有收到信息。

你最好自己输入,这样就不会只出现在一条长线上。


感谢您的链接。然而,它没有加载任何东西:

页面无法找到


对于给您带来的不便,我们深表歉意,但无法找到您要寻找的页面在这个

位置。


如果您正在寻找特定文件,请尝试左侧的目录或

请查看以下某个方面:


*有关特定产品或技术的内容,请尝试使用MSDN站点地图。

*对于Web Workshop内容已经迁移到MSDN Library中,尝试使用Internet开发条目页面或Internet开发索引。


我还检查了Form类和发现没有取消会员。


A useful comment first. Your client apparently doesn''t wrap a message when it sends it so
you had better press enter yourself so as to make it not appearing in only one long line.

Thanks for the link. However it doesn''t load anything:
"Page Cannot Be Found

We apologize for the inconvenience, but the page you are seeking cannot be found in this
location.

If you are looking for a particular document, try the table of contents on the left or
look in one of the following areas:

* For content pertaining to a specific product or technology, try the MSDN Site Map.
* For Web Workshop content that has been migrated into the MSDN Library, try either
the Internet Development Entry Page or the Internet Development Index."

I also checked Form class and found no Cancel member of it.


你是对的..这很奇怪,从来没有发生过......

http://msdn.microsoft.com/library/de...osingTopic.asp

希望这会工作。

对不起!


史蒂夫


" Ioannis Vranos" < iv*@remove.this.grad.com>在消息中写道

新闻:uY ************** @ TK2MSFTNGP15.phx.gbl ...
You''re right.. that is odd, and never happened before...

http://msdn.microsoft.com/library/de...osingTopic.asp

Hopefully this''ll work.
Sorry!

Steve

"Ioannis Vranos" <iv*@remove.this.grad.com> wrote in message
news:uY**************@TK2MSFTNGP15.phx.gbl...
Steve McLellan写道:
Steve McLellan wrote:


看看:

http://msdn.microsoft.com/library/de...ancelEventArgs
有一个名为Cancel的成员,你可以设置为true。我不认为你可以附加在''X'上的任何直接处理程序。史蒂夫Ioannis Vranos"
< iv*@remove.this.grad.com>写在
messagenews:%2 **************** @ TK2MSFTNGP10.phx.gb l ...>当点击上右上角的X时,是否有任何方式使表格*不关闭?>>
是否有处理点击X的事件(例如
performadditional actions)?
Hi,

Have a look at:

http://msdn.microsoft.com/library/de...ancelEventArgs
has a member called Cancel you can set to true. I don''tthink there''s any
direct handler you can attach to the ''X''.Steve"Ioannis Vranos"
<iv*@remove.this.grad.com> wrote in
messagenews:%2****************@TK2MSFTNGP10.phx.gb l...> Is there any way
to make a form *not closing* when its X on theupper-right is clicked?>>
Is there any event for handling clicks on the X (e.g. to
performadditional actions)?



首先是有用的评论。你的客户显然没有在发送消息时给你留言,所以你最好自己输入,这样就不会只出现在一条长线上。

谢谢你的链接。然而,它没有加载任何东西:

页面无法找到

我们对给您带来的不便深表歉意,但您找到的页面无法找到在这个位置。

如果您正在寻找特定文件,请尝试左侧的目录或查看以下某个区域:

*有关特定产品或技术的内容,请尝试使用MSDN站点地图。
*对于已迁移到MSDN
库的Web Workshop内容,请尝试Internet开发条目页面或者互联网
发展指数。

我还检查了Form类,没有找到它的取消成员。


A useful comment first. Your client apparently doesn''t wrap a message when
it sends it so you had better press enter yourself so as to make it not
appearing in only one long line.

Thanks for the link. However it doesn''t load anything:
"Page Cannot Be Found

We apologize for the inconvenience, but the page you are seeking cannot be
found in this location.

If you are looking for a particular document, try the table of contents on
the left or look in one of the following areas:

* For content pertaining to a specific product or technology, try the
MSDN Site Map.
* For Web Workshop content that has been migrated into the MSDN
Library, try either the Internet Development Entry Page or the Internet
Development Index."

I also checked Form class and found no Cancel member of it.



这篇关于使表单不关闭/处理在.NET 1.1中关闭事件的单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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