I'm actually building a program at school in .net. This is the first time I'm using it and I've got a question.
I got a MdiParent
form which has two MdiChildren
: a config
form, and an articles list form. When you fill the config
form, the articles list should appear.
I'm actually using this method in the MdiParent
:
private void MotherMdi_MdiChildActivate(object sender, System.EventArgs e)
{
...;
}
But I need to deal with multiple variables because this method is fired every time a mdichild
is open or closed ...
Is there a way to call a specific method only when One MdiChild
is closed ?
Thanks a lot.
Event
FormClosing
is raised every time a windows form is closed. You can handle that event and do processing that you need to do when a form is closing.In the parent form:
In the child form:
You may want to use
FormClosed
if that is what you need.You can also use your own inherited class if you want to pass more information than what
FormClosingEventArgs
would do.