WindowsFormsApplicationBase.OnShutdown Method ()


When overridden in a derived class, allows for code to run when the application shuts down.

Namespace:   Microsoft.VisualBasic.ApplicationServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

protected virtual void OnShutdown()

This method does not run if an unhandled exception occurs in the main application.

By default, this method raises the Shutdown event.

.NET Framework
Available since 2.0
Return to top