469,658 Members | 1,826 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,658 developers. It's quick & easy.

What's the difference between Application.Exit() and End

Hi,

Anybody would like to tell me ther defference between
Application.Exit() and
[b:9a317afd33]End[/b:9a317afd33]? I can use
[b:9a317afd33]End[/b:9a317afd33] to end my application no matter how
many forms and codes after the [b:9a317afd33]End[/b:9a317afd33]
statement. But since I change the [b:9a317afd33]End[/b:9a317afd33]
statement to [b:9a317afd33]Application.Exit()[/b:9a317afd33], the
codes after the statement still been executed. So,
[b:9a317afd33]Application.Exit()[/b:9a317afd33] not exactly equal to
[b:9a317afd33]End[/b:9a317afd33]?
Any advise will be appreciate.

Oktave
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 20 '05 #1
3 1806
Hi,

Application.Exit stops all message loops, threads, and closes all the
windows. It does not force the application to exit like end.

Ken
---------------

"oktave" <ok****@tpts5.seed.net-dot-tw.no-spam.invalid> wrote in message
news:40**********@Usenet.com:
Hi,

Anybody would like to tell me ther defference between
Application.Exit() and
[b:9a317afd33]End[/b:9a317afd33]? I can use
[b:9a317afd33]End[/b:9a317afd33] to end my application no matter how
many forms and codes after the [b:9a317afd33]End[/b:9a317afd33]
statement. But since I change the [b:9a317afd33]End[/b:9a317afd33]
statement to [b:9a317afd33]Application.Exit()[/b:9a317afd33], the
codes after the statement still been executed. So,
[b:9a317afd33]Application.Exit()[/b:9a317afd33] not exactly equal to
[b:9a317afd33]End[/b:9a317afd33]?
Any advise will be appreciate.

Oktave
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
HYPERLINK "http://www.usenet.com"http://www.usenet.com


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 262.10.6 - Release Date: 5/28/2004
Nov 20 '05 #2
So...just curious... what is the .NET equivalent to "End" ?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 20 '05 #3
"Jimi" <ji************@yahoo-dot-ca.no-spam.invalid> schrieb
So...just curious... what is the .NET equivalent to "End" ?


See help docs for "End". It says it calls System.Environment.Exit.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Guinness Mann | last post: by
4 posts views Thread by Bob Day | last post: by
5 posts views Thread by Antonio Parolini | last post: by
1 post views Thread by =?Utf-8?B?VGFvZ2U=?= | last post: by
8 posts views Thread by Academia | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.