Okay, I just got started using VB .NET 2003 in a maintenance role and I have to start by fixing the following problem. There is a window in my program that has an exit button. When a user pushes the exit button a procedure is called and "certain things" happen. However, if the user uses the X in the top right corner, or if ALT + F4 is pressed, the procedure is not called which is the problem. How do I tie the exit procedure into the other window closing options?

Thanks...