CB
Clay Burch
Syncfusion Team
July 22, 2002 04:54 AM UTC
In the Parent Form, you can catch a click on the parent Form's System Menu Close box using the FAQ referenced below. The idea is to override WndProc, and look for a SYSCOMMAND call to SC_CLOSE. If you don't want the close to go through, just return without calling the baseclass.
====================
How can I tell if a form is closed from the controlbox (system menu) or from a call to Form.Close?
Check it out at:
http://www.syncfusion.com/faq/winforms/search/862.asp