I am trying to give a warning message like in microsoft word. When the user made some change in the form, and then unload the form, I will give the user a message: exit and saved the changes, exit without saving, or cancel. Apparently, the exit without saving never works out. Here is my code...