LocationMy.Application.Shutdown SyntaxPublic Sub Me_Shutdown(ByVal sender As Object, _ ByVal e As EventArgs) Handles Me.Shutdown End Sub
DescriptionThe Shutdown event occurs when the application shuts down. Usage at a Glance
ExampleThe 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 AlsoApplication Object, Startup Event, StartupNextInstance Event, UnhandledException Event |