MDI Help - Prevent Child Form from Exiting in Unload Event

MDI Help - Prevent Child Form from Exiting in Unload Event

Post by John Su » Sun, 25 Jun 2000 04:00:00



Hi, I noticed that when I press the X (close) on a MDI form, the active
child form closes before I can ask the user if they really want to quit.. I
might have different forms that the user can be using at the time, so I want
the active form to stay open until I can varifly that the user really wants
to quit..  How would I do this?
Thanks
John

Remove NOSPAM to reply..

 
 
 

MDI Help - Prevent Child Form from Exiting in Unload Event

Post by Jason Bouzan » Sun, 25 Jun 2000 04:00:00


Instead of using the Unload event use the QueryUnload event.

Jason Bouzane


Quote:> Hi, I noticed that when I press the X (close) on a MDI form, the active
> child form closes before I can ask the user if they really want to quit..
I
> might have different forms that the user can be using at the time, so I
want
> the active form to stay open until I can varifly that the user really
wants
> to quit..  How would I do this?
> Thanks
> John

> Remove NOSPAM to reply..


 
 
 

MDI Help - Prevent Child Form from Exiting in Unload Event

Post by Bob Butle » Mon, 26 Jun 2000 04:00:00




Quote:> Hi, I noticed that when I press the X (close) on a MDI form, the
active
> child form closes before I can ask the user if they really want to
quit.. I
> might have different forms that the user can be using at the time, so
I want
> the active form to stay open until I can varifly that the user really
wants
> to quit..  How would I do this?

Check out the Form_QueryUnload events of both the parent and the child
forms

--
Please reply via the newsgroup only

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

MDI Help - Prevent Child Form from Exiting in Unload Event

Post by John Su » Sat, 01 Jul 2000 04:00:00


Thanks.. That was it..
John


Quote:> Instead of using the Unload event use the QueryUnload event.

> Jason Bouzane