Run Method


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




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net