常見例句Define a Public Sub Main procedure for your project. 為項目定義Public Sub Main過程。In this case, your application will use the standard Sub Main. 在這種情況下,應用程序將使用標準的Sub Main。For example, a Console Application has a Startup Object option, which can be Sub Main or Module1. 例如,控制臺應用程序具有“啟動對象”選項,該選項可以是“Sub Main”或“Module1”。A Windows Application has a Startup Form option, which can be Form1 or Sub Main (see following note). Windows應用程序則具有“啟動窗體”選項,該選項可以是“Form1”或“Sub Main”(請參見下面的注意部分)。A full qualification to the class or module that contains the Sub Main procedure to be called when the program starts. 這是類或模塊的完全限定位置,該類或模塊包含程序啟動時要調用的Sub Main過程。When using a custom Sub Main procedure as the Startup object, code in the application events (Startup, Shutdown, StartupNextInstance, and UnhandledException) is not executed. 如果將自定義Sub Main過程用作“啟動對象”,則不執(zhí)行應用程序事件(Startup、Shutdown、StartupNextInstance和UnhandledException)中的代碼。 返回 sub-main