ClassSystem.Windows.Forms.Application SyntaxApplication.Run(mainForm)
Other syntax variations are available. DescriptionThe Run method starts a new application on the current thread, specifying the main form to display and use as the basis of the application. This is a common way of starting a Windows Forms application. ExampleModule GeneralCode Public Sub Main( ) ' ----- Starts the application. Application.Run(New Form1) End Sub End Module Version DifferencesVisual Basic 2005 includes new features that let you show the main form of an application with a syntax more familiar to VB 6 developers. See the My.Forms Object entry in Chapter 13 for additional information. See AlsoApplication Class |