Form.Close问题 [英] Form.Close problem
问题描述
大家好,
我有一个问题,我相信其他人以前经历过,但到目前为止,我所看到的
还没有解决。
基本上,表单拒绝关闭。既不点击X按钮也不点击
调用Form.Close。不会抛出Closing事件。表格
包含许多控件,其中一些是从UserControl派生的。
通过设置某些子控件属性可以重现问题,
但是他们是非常无害的东西,比如图表的标题,所以我不能看到他们会有这样的效果......
有些人似乎遇到过这个问题。这是一个已知的问题吗?
MS? (如果有人知道相关的知识库文章,我会非常感激!我看了很多b $ b,但是找不到任何东西)
欢呼,
Rob
hi all,
I have a problem which I believe others have experienced before, but as far
as I can see has not been resolved.
Basically, the form refuses to close. Neither clicking the ''X'' button nor
calling Form.Close works. The Closing event is not thrown. The form
contains a number of controls, some of which are derived from UserControl.
The problem can be reproduced by setting certain child control properties,
but they''re pretty innocuous things like the title of a graph, so I can''t
see how they''d have such an effect...
A few people seem to have come across this problem. Is it a bug known to
MS? (if anyone knows of a relevant KB article I''d be very grateful! I have
looked, but couldn''t find anything)
cheers,
Rob
推荐答案
致电
Application.ExitThread();
in File->退出
-
Shak
(休斯顿)
" Rob Agar" < RO ***** @ TOOMUCHBLEEDINSPAMukfsn.org>在消息中写道
news:cd ********** @ slavica.ukpost.com ...
Call
Application.ExitThread();
in File->Exit
--
Shak
(Houston)
"Rob Agar" <ro*****@TOOMUCHBLEEDINSPAMukfsn.org> wrote in message
news:cd**********@slavica.ukpost.com...
大家好,
还没有得到解决。
基本上,表单拒绝关闭。既不点击X按钮也不点击
调用Form.Close。不会抛出Closing事件。表单
包含许多控件,其中一些是从UserControl派生的。
问题可以通过设置某些子控件属性来重现,
但它们是非常无害的东西,比如图表的标题,所以我不能看到他们会有这样的效果......
有些人似乎遇到过这个问题。这是一个MS知道的错误吗? (如果有人知道相关知识库文章,我会非常感激!我看了b $ b但是找不到任何东西)
欢呼,
Rob
hi all,
I have a problem which I believe others have experienced before, but as far as I can see has not been resolved.
Basically, the form refuses to close. Neither clicking the ''X'' button nor
calling Form.Close works. The Closing event is not thrown. The form
contains a number of controls, some of which are derived from UserControl.
The problem can be reproduced by setting certain child control properties,
but they''re pretty innocuous things like the title of a graph, so I can''t
see how they''d have such an effect...
A few people seem to have come across this problem. Is it a bug known to
MS? (if anyone knows of a relevant KB article I''d be very grateful! I have looked, but couldn''t find anything)
cheers,
Rob
这是一个极端的解决方案! =)
R
Shakir Hussain < SH ** @ fakedomain.com>在消息中写道
新闻:嗯*************** @ TK2MSFTNGP11.phx.gbl ...
that''s rather an extreme solution! =)
R
"Shakir Hussain" <sh**@fakedomain.com> wrote in message
news:um***************@TK2MSFTNGP11.phx.gbl...
致电
Application.ExitThread();
在文件 - >退出
-
Shak
(休斯敦)>
" Rob Agar" < RO ***** @ TOOMUCHBLEEDINSPAMukfsn.org>在消息中写道
新闻:cd ********** @ slavica.ukpost.com ...
Call
Application.ExitThread();
in File->Exit
--
Shak
(Houston)
"Rob Agar" <ro*****@TOOMUCHBLEEDINSPAMukfsn.org> wrote in message
news:cd**********@slavica.ukpost.com...
大家好,
我有我相信其他人之前遇到过的一个问题,但正如我所看到的
hi all,
I have a problem which I believe others have experienced before, but as
远
尚未解决。
基本上,表格拒绝关闭。既不点击X按钮
也不点击Form.Close。不会抛出Closing事件。表格
包含许多控件,其中一些是从
UserControl派生的。可以通过设置某些子控件
属性来重现这个问题,但是它们是非常无害的东西,比如图表的标题,所以我不知道他们怎么会有这样的效果......
有些人似乎遇到过这个问题。这是一个知道
到MS的错误吗? (如果有人知道相关知识库文章我会非常感激!我
as I can see has not been resolved.
Basically, the form refuses to close. Neither clicking the ''X'' button nor calling Form.Close works. The Closing event is not thrown. The form
contains a number of controls, some of which are derived from UserControl. The problem can be reproduced by setting certain child control properties, but they''re pretty innocuous things like the title of a graph, so I can''t see how they''d have such an effect...
A few people seem to have come across this problem. Is it a bug known to MS? (if anyone knows of a relevant KB article I''d be very grateful! I
有
看了,但找不到任何东西)
<欢呼,
Rob
looked, but couldn''t find anything)
cheers,
Rob
>
Shakir Hussain < SH ** @ fakedomain.com>在消息中写道
新闻:嗯*************** @ TK2MSFTNGP11.phx.gbl ...
Hi,
"Shakir Hussain" <sh**@fakedomain.com> wrote in message
news:um***************@TK2MSFTNGP11.phx.gbl...
致电
Application.ExitThread();
在File->退出
Call
Application.ExitThread();
in File->Exit
我会建议这个选项像最后一个资源 - 它很好地退出。
而是尝试查明问题的根源。
-
Miha Markic [MVP C#] - RightHand .NET咨询&开发
miha at rthand com
www.rthand.com
这篇关于Form.Close问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!