WindowsFormsApplicationBase.OnShutdown Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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