Application.Exit或End [英] Application.Exit or End
问题描述
在上面的选择中使用哪一个?
VB.Net。 .Net Framework 1.1
谢谢,
Pete
Pete Smith写道:< blockquote class =post_quotes>在上面的选择中使用哪一个?
VB.Net。 .Net Framework 1.1
谢谢你,
Pete
据我所知,除非你有具体内容,否则应该避免这两种情况
使用它的理由。在大多数情况下,关闭表格将退出
计划。你为什么要尝试使用?
chris
我的不足之处是通过调用上述语句将关闭
申请正确。就像释放所有资源......等等。
这就是我呼吁上述陈述的原因。
Pete
" Chris" < no@spam.com>在消息中写道
news:eL ************** @ TK2MSFTNGP09.phx.gbl ...Pete Smith写道:< blockquote class =post_quotes>在上面的选择中使用哪一个?
VB.Net。 .Net Framework 1.1
谢谢你,
Pete
据我所知,除非你有特定的,否则应该避免两种情况
使用它的原因。在大多数情况下,关闭表单将退出
程序。你为什么试图使用?
chris
" Pete Smith" < Pe的********* @ hotmail.com> schrieb:我的不足之处是通过调用上述语句将正确关闭
应用程序。就像释放所有资源......等等。
这就是我调用上述声明的原因。
两者都将发布资源,但自定义清理代码可能无法执行!
您能更详细地描述您的应用程序的设计吗?
您称之为''结束''/' 'Application.Exit''?
-
MS Herfried K. Wagner
MVP< URL:http:/ /dotnet.mvps.org/>
VB< URL:http://classicvb.org/petition/>
Which is the appropriate one to use in the above choice?
VB.Net. .Net Framework 1.1
Thank you,
Pete
Pete Smith wrote:Which is the appropriate one to use in the above choice?
VB.Net. .Net Framework 1.1
Thank you,
Pete
As far as I know both should be avoided unless you have a specific
reason to use it. In most cases closing the forms will exit the
program. Why are you trying to use either?
chris
My understating is by calling the above statements will close the
application properly. Like releasing all the resources.... etc.
That is the reason why I am calling the above statements.
Pete
"Chris" <no@spam.com> wrote in message
news:eL**************@TK2MSFTNGP09.phx.gbl...Pete Smith wrote:Which is the appropriate one to use in the above choice?
VB.Net. .Net Framework 1.1
Thank you,
Pete
As far as I know both should be avoided unless you have a specific
reason to use it. In most cases closing the forms will exit the
program. Why are you trying to use either?
chris
"Pete Smith" <Pe*********@hotmail.com> schrieb:My understating is by calling the above statements will close the
application properly. Like releasing all the resources.... etc.
That is the reason why I am calling the above statements.
Both will release resources, but custom cleanup code may not be executed!
Could you describe the design of your application in more detail and where
you are calling ''End''/''Application.Exit''?
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
这篇关于Application.Exit或End的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!