Terminate Running Program

  • Thread starter Thread starter Alan
  • Start date Start date
A

Alan

Dear all,

I use VB.net and a form contain a Button called "START" and a button called
"QUIT".

After I press the START button, I have a procedure to run, it may run lots
of time. I want to press the QUIT button to terminate all the running
processes. However, I use APPLICATION.EXIT. The program still to run in the
background.

How can I really terminate the program

Please kindly advise

Thanks
 
* "Alan said:
I use VB.net and a form contain a Button called "START" and a button called
"QUIT".

After I press the START button, I have a procedure to run, it may run lots
of time. I want to press the QUIT button to terminate all the running
processes. However, I use APPLICATION.EXIT. The program still to run in the
background.

Set a Boolean variable which is checked by the procedure. If the
varaible is set to 'True', the procedure should exit.
 
Back
Top