We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

C# Windows MDI Parent Form

Thread ID:

Created:

Updated:

Platform:

Replies:

657 Jul 22,2002 03:58 AM UTC Jul 22,2002 04:54 AM UTC WinForms 1
loading
Tags: FAQ
jjj
Asked On July 22, 2002 03:58 AM UTC

There are 5 child forms in an MDI Parent Form.When I close the MDI Parent Form it fires first close event of child form.Actually i have written some code on Child Close form. I donot want to fire child close event when i close theMDI Parent Form. Is there any way so that when i close MDI Parent form it checks whether this close is clicked by MDI parent form or by Child Form close click. Thanks

Clay Burch [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;