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)

abstract OnShutdown : unit -> unit
override OnShutdown : unit -> unit

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
Show: