Controlling MDIChild forms

G

Guest

Hi

I kind of a new programmer. I started a few wees ago with Visual Basic .NET and I'm trying to develop a simple (I think) application with an MDIForm and an MDIChild. Thus, I open the Child form and it works fine but, when I close, using the close button (X) on the upper-right corner of its window, I can´t mange to catch this event on the MDI Parent form, so I can redefine the MDI Form main menu again (show & hide some options)
Can someone tell me a way so that the MDI Parent form knows when its child form has been closed (with the close button on the upper-right)

Thank

Paulo
 
M

Marc Butenko

One way to do what you want is to catch the Closing event in the MDIChild
form and have that call a method in the MDIParent to make the necessary
modifications...

--
Marc Butenko
(e-mail address removed)



Paulo said:
Hi,

I kind of a new programmer. I started a few wees ago with Visual Basic
..NET and I'm trying to develop a simple (I think) application with an
MDIForm and an MDIChild. Thus, I open the Child form and it works fine but,
when I close, using the close button (X) on the upper-right corner of its
window, I can´t mange to catch this event on the MDI Parent form, so I can
redefine the MDI Form main menu again (show & hide some options).
Can someone tell me a way so that the MDI Parent form knows when its child
form has been closed (with the close button on the upper-right)?
 

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