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
 
Back
Top