LocationMy.Application.Startup SyntaxPublic Sub Me_Startup(ByVal sender As Object, _ ByVal e As StartupEventArgs) Handles Me.Startup End Sub
DescriptionThe Startup event occurs when the application first starts. For single-instance applications, this event only occurs for the initial application startup. Public MembersThe e argument to this event, as an instance of the StartupEventArgs class, includes the following notable public members.
Usage at a Glance
ExampleThe Startup event's code appears in the ApplicationEvents.vb file in a Windows Forms application. Namespace My Class MyApplication Private Sub MyApplication_Startup(ByVal sender As Object, _ ByVal e As Microsoft.VisualBasic.ApplicationServices. _ StartupEventArgs) Handles Me.Startup Console.WriteLine("Welcome.") End Sub End Class End Namespace Related Framework Entries
See AlsoApplication Object, CommandLineArgs Property, Shutdown Event, StartupNextInstance Event, UnhandledException Event |