MDI child form event

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
 
H

Herfried K. Wagner [MVP]

* (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.
 

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