F
feltra
Hi,
The following is from my friend, who has some technical problem at
present in accessing the web... I am writing for him... Kindly
request your inputs ASAP, as he has some kind of deadline tomorrow.
..........................................................................................
I am having an issue with MDI form. I have an MDI form and some Child
forms. In order to enable for a choice, I am displaying a message box
in the FormClosing event of both the forms. When the form is closed
individually, the code works fine, closing the form depending on
confirmation from the user, other wise the e.Cancel event is set to
true.
The problem is when I try to close the MDI form when the child
forms are open. By virtue of the property in .NET it goes through the
closing events of all the forms.., finally running the closing event
of the MDI form, which is undesirable. Is it possible to display a
different message box and close all child forms and the MDI form also,
without calling the formclosing method of the child forms?
If not, how do i display a message box confirmation when user clicks
on the X on the form? Please help me.. Its urgent...
............................................................................................
Thanks & Regards,
-feltra
The following is from my friend, who has some technical problem at
present in accessing the web... I am writing for him... Kindly
request your inputs ASAP, as he has some kind of deadline tomorrow.
..........................................................................................
I am having an issue with MDI form. I have an MDI form and some Child
forms. In order to enable for a choice, I am displaying a message box
in the FormClosing event of both the forms. When the form is closed
individually, the code works fine, closing the form depending on
confirmation from the user, other wise the e.Cancel event is set to
true.
The problem is when I try to close the MDI form when the child
forms are open. By virtue of the property in .NET it goes through the
closing events of all the forms.., finally running the closing event
of the MDI form, which is undesirable. Is it possible to display a
different message box and close all child forms and the MDI form also,
without calling the formclosing method of the child forms?
If not, how do i display a message box confirmation when user clicks
on the X on the form? Please help me.. Its urgent...
............................................................................................
Thanks & Regards,
-feltra