Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
Location
My.Application.Shutdown Syntax
Public Sub Me_Shutdown(ByVal sender As Object, _ ByVal e As EventArgs) Handles Me.Shutdown End Sub
Description
The Shutdown event occurs when the application shuts down. Usage at a Glance
Example
The Shutdown event's code appears in the ApplicationEvents.vb file in a Windows Forms application. Namespace My Class MyApplication Private Sub MyApplication_Shutdown(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Shutdown Console.WriteLine("See you later.") End Sub End Class End Namespace Related Framework Entries
See Also
Application Object, Startup Event, StartupNextInstance Event, UnhandledException Event |
Категории