terminating of program

  • Thread starter Thread starter wayne
  • Start date Start date
W

wayne

hi,

may i know how to terminate a program halfway thru the run?

for example i have test A, B and C. the order is random (ie, can be A
C, B or B, A, C etc etc)

if the first test executed encountered an error, the whole program wil
stop (second n third tests will not run at all). the program will onl
continue to run if each test is correctly executed.

is there any such command to terminate a program?

thanks,
wayn


-
wayn
 
Calling Form.Close() for the main window is the preferred way to close an
application,
Application.Exit() works after the Form.Load event of the main form has been
fired (Note that Form.Closeing and Form.Close are not called),
Environment.Exit() works in all cases.

Hans.
 
Back
Top