Can I please ask what everyone else does to handle program terminations?
I want my program to unload,kill, remove, and otherwise stop running any time someone hits the little X in the corner or some selects quit.
My project has 4 forms in it. sometimes only 3 are loaded.
When one gets loaded I keep it in memory so that the user can go back to it the way they left it.
How can I handle the removal of all forms and stop the exe from running when any X gets hit or the user selects quit?
thank you for your time and have a good day