In VB 6 when a program is running and a user clicks on the X on the form to close the program. How do I remove the program from memory? When this happens now I have to go to Task manager and End Task to close the program.