Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've had this problem for a while.

I put a break point to test in both the embedded Form's OnClosed and OnClosing Events and the code in these event don't get called.

How do I get these events to fire?
The OnClosed and OnClosing Events in my MainForm works properly.

Thanks,
Donnelly
Posted
Updated 27-Dec-10 12:11pm
v2
Comments
#realJSOP 27-Dec-10 13:14pm    
Without seeing some code, we really can't suggest anything.
Dalek Dave 27-Dec-10 18:11pm    
Edited for Readability.
Dr.Walt Fair, PE 27-Dec-10 19:33pm    
How are you closing the form?

1 solution

If it's possible to get at the instance of the embedded form you may want to try and call its Close() method on your main form's OnClosing event. I figure that way the embedded form's events might be called.

Regards,

Manfred
 
Share this answer
 
v2
Comments
Dalek Dave 27-Dec-10 18:11pm    
Good Call, Manfred.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900