You have to handle the Closing event and take appropriate action (ie set the
Cancel property of the event's arg to true). Have a look at the doc for this
event for all implications of doing that. This is very simple to do but this
may lead to other problems if you are not careful:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html
/frlrfSystemWindowsFormsFormClassClosingTopic.asp>
also you can handle the Closing event and set the Cancel property to true
very easy you still get the X as the user expect but you have control
over the closing
Cheers,
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.