how to exit

  • Thread starter Thread starter Jerry
  • Start date Start date
J

Jerry

I need to be able to exit my program completely no matter what. I am not
able to do this with any of the following commands:

this.Close();
vfData.ActiveForm.Close();
Form.ActiveForm.Close();
Application.ExitThread();

Any ideas?

Thanks,

Jerry
 
I need to be able to exit my program completely no matter what. I am not
able to do this with any of the following commands:

this.Close();
vfData.ActiveForm.Close();
Form.ActiveForm.Close();
Application.ExitThread();

Any ideas?

What's preventing your application from exiting?
 
Hi,

Jerry said:
I need to be able to exit my program completely no matter what. I am not
able to do this with any of the following commands:

this.Close();
vfData.ActiveForm.Close();
Form.ActiveForm.Close();
Application.ExitThread();

Application.Exit should do.
 
Jerry said:
I need to be able to exit my program completely no matter what. I am
not able to do this with any of the following commands:

this.Close();
vfData.ActiveForm.Close();
Form.ActiveForm.Close();
Application.ExitThread();

Any ideas?

Thanks,

Jerry
Enivorment.Exit(); works for me everytime!
 

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