Can anyone tell me why the Usercontrol_Terminate does not fire when I close the cointaining form?
Printable View
Can anyone tell me why the Usercontrol_Terminate does not fire when I close the cointaining form?
Straight from MSDN.
Quote:
For all objects except classes, the Terminate event occurs after the Unload event.
The Terminate event isn't triggered if the instances of the form or class were removed from memory because the application terminated abnormally. For example, if your application invokes the End statement before removing all existing instances of the class or form from memory, the Terminate event isn't triggered for that class or form.