Event Closed
Occurs when the window is closed.
public event EventHandler? Closed
Returns
- EventHandler
- Occurs when the window is closed.
- Implements
Remarks
The Closed event occurs after the window has been closed by the user or programmatically. To prevent a window from closing, handle the Closing event and set the Cancel property of the WindowClosingEventArgs passed to your event handler to true.
You can use this event to perform tasks such as freeing resources used by the window and to save information entered in the form or to update its parent window.