PDA

View Full Version : Solved: Close VB6 project from within?



andrew93
01-06-2006, 08:50 PM
Hi

Is it possible to have a VB6 project close itself? I can't seem to find anything online and VB6 doesn't have an App.Quit command. The X button still works ok, but it would be nice for the users to be able to quit the application when prompted.

Any ideas?

TIA, Andrew

Bob Phillips
01-07-2006, 03:18 AM
Hi

Is it possible to have a VB6 project close itself? I can't seem to find anything online and VB6 doesn't have an App.Quit command. The X button still works ok, but it would be nice for the users to be able to quit the application when prompted.

Any ideas?

TIA, Andrew

Surely, unloading the form deletes the application from memory, so as you say, X works, but it would also work if you included



Unload Me


in your app

andrew93
01-07-2006, 03:43 PM
Perfect thanks! I couldn't find the syntax for this no matter how hard I tried! Thanks again.
Andrew :)