How do I make it so that clicking the x in the top right corner of the form closes the app completely? (currently if I press the x, it hides the form but task manager says that my app is still running in the background)
Thanks
Eagle
09-04-2000, 08:37 PM
Put the "End" statement in the "Form Unload" Procedure.
Grimfort
09-07-2000, 12:22 PM
The 'END' statement will completly kill all your forms which is OK if you've got not data to possibly save. The reason that you app is still running in the background is because you have not unloaded all other forms, you have probably got a small options screen open or something.
Just add this code to your Unload event of your main form.
=========
Dim TempForm as Form
For Each TempForm in Forms
Unload TempForm
Next
=======
It's the nice way to exit
Grimfort