This documentation is archived and is not being maintained.

WindowsFormsApplicationBase.Run Method

Note: This method is new in the .NET Framework version 2.0.

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
public void Run (
	String[] commandLine
public function Run (
	commandLine : String[]



Array of type String. The command line from Sub Main.

For more detailed information, see the Visual Basic topic My.Application.Run Method.

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0