WindowsFormsApplicationBase.Run(String[]) Method

Definition

Sets up and starts the Visual Basic Application model.

public:
 void Run(cli::array <System::String ^> ^ commandLine);
public void Run (string[] commandLine);
member this.Run : string[] -> unit
Public Sub Run (commandLine As String())

Parameters

commandLine
String[]

The command line from Sub Main.

Remarks

The My.Application.Run method provides support for the Visual Basic Application model. This method should be called only from the application's Sub Main. By default, the Sub Main of a Windows Forms application calls this method. For more information, see Overview of the Visual Basic Application Model.

Availability by Project Type

Project type Available
Windows Forms Application Yes
Class Library No
Console Application No
Windows Forms Control Library No
Web Control Library No
Windows Service No
Web Site No

Applies to

See also