This documentation is archived and is not being maintained.

WindowsFormsApplicationBase.Run Method

Sets up and starts the Visual Basic Application model.

Namespace:  Microsoft.VisualBasic.ApplicationServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public void Run(
	string[] commandLine
)

Parameters

commandLine
Type: System.String[]
Array of type String. The command line from Sub Main.

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: