how do I exit a form ??

  • Thread starter Thread starter Simon
  • Start date Start date
Simon said:
I need to force a exit if a critical file is not found???

To close a form, call it's close method. To exit an appliation, exit all
threads. To exit a thread, exit all procedures in reverse order. To exit a
UI thread, close the form passed to Application.Run or the one set as the
"startup object" in the project properties. To exit Application.Run without
arguments, call application.exitthread.

Armin
 

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