MDI forms..

V

VJ

I have a project with MDI form and various other forms which open as child
to the MDI form. Everytime I hit the "X" button on the MDI form, none of the
childs Closing event fires..

I said lets try in a test bed, so I just put in MDI form and a couple of
Child forms with code in close event. I hit the "X" button, boom the close
event fires, and if I say e.cancel = true, the MDI form even stays open.

I went throught properties of forms in my project and test bed to see if
there is a difference, nothing other than the form size and the project
forms having various controls and code for these controls. In both cases
there is no code in the MDI form's close event. The next step would be to
start adding control by control & code to my Test bed from the project to
see were it breaks..which means my weekend is dead :-(. Anybody come across
such a situation & did something ? please let me know to save my weekend

Thanks
VJ
 
H

Herfried K. Wagner [MVP]

* "VJ said:
I have a project with MDI form and various other forms which open as child
to the MDI form. Everytime I hit the "X" button on the MDI form, none of the
childs Closing event fires..

I said lets try in a test bed, so I just put in MDI form and a couple of
Child forms with code in close event. I hit the "X" button, boom the close
event fires, and if I say e.cancel = true, the MDI form even stays open.

Do you set 'e.Cancel' to 'True' in one of the MDI children's 'Closing'
event handler? This will prevent the MDI parent from closing.
 
V

VJ

Yes it will. But That is not what I want. I want the MDI child's close event
to fire when the MDI form is closing which seems to happen in my TestBedAPp
and not in my project

VJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top