Controlling MDIChild forms

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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)?
 
Back
Top