Completely Close and Exit App

J-Man
09-01-2003, 03:32 PM
Is there a command to quit the entire VB application? In other words, can I do something like "Quit App" and this will close all forms and exit the application gracefully? Thanks in advance!!!

xBox
09-01-2003, 03:36 PM
Is there a command to quit the entire VB application? In other words, can I do something like "Quit App" and this will close all forms and exit the application gracefully? Thanks in advance!!!


using End Function.. it will close entire application

Iceplug
09-01-2003, 03:37 PM
End will quit the entire app (I don't know about the "gracefully" part :)), but it is not recommended, as it doesn't clear all of the objects that you use.
You should Unload all of your forms one by one, and set all of your object/class variables = Nothing.

xBox
09-01-2003, 03:40 PM
End will quit the entire app (I don't know about the "gracefully" part :)), but it is not recommended, as it doesn't clear all of the objects that you use.
You should Unload all of your forms one by one, and set all of your object/class variables = Nothing.


QueryUnload event or unload event ...... Set nothing all your object variables

J-Man
09-01-2003, 03:51 PM
End will quit the entire app (I don't know about the "gracefully" part :)), but it is not recommended, as it doesn't clear all of the objects that you use.
You should Unload all of your forms one by one, and set all of your object/class variables = Nothing.

I think I'm going to go with the "End" suggestion. In my app, this will only occur if someone is trying to hack into my app anyway...so, tough s%$t if there stuff gets jacked up!?!?!?!?!

Thanks all!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum