表格退出 [英] Form Exit

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

问题描述

集团,


i希望有人能够帮助解决这个问题。


我希望表格在确定之后退出逻辑计算...我在Sub New()程序中尝试了

me.dispose,但它没有退出。


i传递了布尔值true受保护的重载覆盖的参数Sub

Dispose(ByVal disposing As Boolean),它没有做任何事情......我已经包含了

a完成程序,没有代码但是还是没有去。


请帮忙。

提前致谢。

Ronin

Group,

i hope someone is able to help with this issue.

I''d like the form to exit after certain logic calculation... i tried the
me.dispose with in the Sub New() procedure, but it does not exit.

i passed the boolean true parameter to the Protected Overloads Overrides Sub
Dispose(ByVal disposing As Boolean), it does not do anything... i''ve included
a finalize procedure with no codes but still no go.

Please help.
Thanks in advance.
Ronin

推荐答案




尝试Me.Close()...


此致,


Cerebrus。

Hi,

Try "Me.Close()"...

Regards,

Cerebrus.


" Ronin" <滚装*** @ discussions.microsoft.com> schrieb:
"Ronin" <Ro***@discussions.microsoft.com> schrieb:
我想在某些逻辑计算后退出表格...我在Sub New()程序中尝试了
me.dispose,但它没有退出。
I''d like the form to exit after certain logic calculation... i tried the
me.dispose with in the Sub New() procedure, but it does not exit.




退出是什么意思?为了防止表单被初始化,

只是抛出异常。


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://classicvb.org/petition/>



What do you mean with exit? To prevent the form from being initialized,
simply throw an exception.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


" Cerebrus" < ZO ***** @ sify.com> schrieb:
"Cerebrus" <zo*****@sify.com> schrieb:
尝试Me.Close()...
Try "Me.Close()"...




这在表单内部没有任何影响的构造函数是因为

构造一个表单的实例并不能使表格可见。


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http: //classicvb.org/petition/>



This won''t have any effect inside the form''s constructor because the
construction of a form''s instance doesn''t make the form visible at all.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


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

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