WindowsFormsApplicationBase.Run Method
Sets up and starts the Visual Basic Application model.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
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 |
-
EnvironmentPermission
Controls the ability to access all environment variables. Associated enumeration: Unrestricted.
-
FileIOPermission
Controls the ability to access files and folders. Associated enumeration: Unrestricted.
-
RegistryPermission
Controls the ability to access registry variables. Associated enumeration: Unrestricted.
-
UIPermission
Controls the permissions related to user interfaces and the Clipboard. Associated enumeration: AllWindows.
-
WebPermission
Controls rights to access HTTP Internet resources. Associated enumeration: Unrestricted.
-
SocketPermission
Controls rights to make or accept connections on a transport address. Associated enumeration: Unrestricted.
-
PerformanceCounterPermission
Controls access to a Windows NT performance counter component. Associated enumeration: Unrestricted.
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.