0

//My project is in C#.NET 2.0

I have multiple forms in my mdi container window .

When I tried to close mdi form , form closing event of a child form (which has current focus/active child ) occurs before the form closing event of mdi form.

Can anybody help me out there?

2
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by Nitin Daphale
0

Actually it's my mistake......
I was looking for the reason of child form closing so that I can write the code in that manner.
By Checking property 'CloseReason' of FormClosingEventArgs we can decide what steps to follow.

if ( e.CloseReason==CloseReason.UserClosing )
{
}

Well thanks for the quick reply.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.