469,600 Members | 2,178 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,600 developers. It's quick & easy.

how do I exit a form ??

I need to force a exit if a critical file is not found???
Nov 21 '05 #1
3 13550
Program exit:

Application.Exit

Form close

theForm.Close :)

"Simon" <Si***@microsoftforums.com> wrote in message
news:Or**************@TK2MSFTNGP14.phx.gbl...
I need to force a exit if a critical file is not found???

Nov 21 '05 #2
Simon schrieb:
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
Nov 21 '05 #3
Simon,
I need to force a exit if a critical file is not found???

me.close

Cor
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Bob Day | last post: by
1 post views Thread by Peter Oliphant | last post: by
12 posts views Thread by Pete Smith | last post: by
4 posts views Thread by JIM.H. | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.