Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Run Method

Location

My.Application.Run

Syntax

My.Application.Run(commandLine)

commandLine (required; String array)

The command line used to start the application as an array of String values.

Description

The Run method starts an instance of the current Windows Forms application using the Visual Basic Startup/Shutdown Application Framework for Windows Forms. This model supports startup and shutdown events, a splash screen, and the display and monitoring of a main application form, among other features.

Usage at a Glance

  • This method is only valid in Windows Forms applications that use the Windows Forms Application Framework introduced with Visual Basic 2005.

  • Only use this method in the "Sub Main" procedure of an application.

Related Framework Entries

  • Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run Method

See Also

Application Object, Shutdown Event, SplashScreen Property, Startup Event, StartupNextInstance Event

Категории