I want to prevent the user from seeing anything except the main form. I am able to handle everything except 1. On the unload of the main form is issue a cancel event which prevents them from going anywhere. The two exceptions are on the access application: file..Exit and clicking the X in the upper right corner. Any ideas on how I can identify that the user did one of these two things that caused the form unload event procedure?