You're thinking in the double negative. By setting the cancel property to false you are saying that you do not want the form to cancel its close, try setting it to true and see what happens.
Have A Better One! John Deal -----Original Message----- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 7:32 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Closing Event question When my Windows Form is about to close because the X on the titlebar was clicked, then my Closing event gets called with a CancelEventArgs object. How can I stop the form from closing at this point ? If I set the CancelEventArgs.cancel property to false, then the form still closes ! thanks You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.