MDI child form event

  • Thread starter Thread starter al
  • Start date Start date
A

al

Hi,

I have MDI form with 4 mdichild forms. I would like to enable Windows
menu-item as more than 1 mdichild form loads. The problem i'm having
is when MdiChildActivate event is raised, it does not handle any event
beyond that. What event should I use to handle Mdichild closing
event. (i'm looking for mdichild form event, not event related to
forms by name)

MTIA,
Grawsha
 
* (e-mail address removed) (al) scripsit:
I have MDI form with 4 mdichild forms. I would like to enable Windows
menu-item as more than 1 mdichild form loads. The problem i'm having
is when MdiChildActivate event is raised, it does not handle any event
beyond that. What event should I use to handle Mdichild closing
event. (i'm looking for mdichild form event, not event related to
forms by name)

Use 'AddHandler' when creating a new child form to add a common handler
to the MDI children's 'Closing' events. In the 'sender' parameter you
can check which form is closing.
 
Back
Top