Im coding a simple program to assist in the job functions at my workplace. So far so good. No problems except, Its not shutting down unless its on the Startup Form. I've changed in the properties to be either "Shutdown on Startup form" and to "Shutdown on last form"

How do I get this to shutdown no matter WHEN they hit the X in the top right?