Determining the Parent orm is closing

  • Thread starter Thread starter Sumit
  • Start date Start date
S

Sumit

HI..
I am having problem ot determine that a parent form is closing or not in my
VB.Net code

Any help
Sumit
 
Hi Sumit,

Therefore is the form event
closing

I hope this helps?

Cor
 
Hi.. The Closing is there in the Parent and child form both.
Also, How can i determine that the call is made by the Parent MDI form and
not by any other form....????

:(
Sumit
 
Sumit,
In the child form, handle the Parent's Closing event. In addition to
possibly handling the child's Closing event.

You could use either AddHandler or WithEvents to setup the event handler for
the Parent's Closing event.

Hope this helps
Jay
 

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

Back
Top