I'm taking a VB course and just got into multiple forms. DUring the course of my project, I had to close the program from the current form.

My question is this: " Is there an action associated with the 'X' box in the Window controls where I can issue unload commands for all forms resident in memory?"

I posed this same question to my instructor and he just scratched his head and grinned. Then stated that there was no such action without creating an exit button with the unload commands in it. Doesn't make sense since there is the Form_load event it would stand to reason that a Form_Unload action or something similar would be available.
Thanks for any help.