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

  • Thread starter Thread starter oktave
  • Start date Start date
O

oktave

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
 
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 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top