Lar*_*ech 6

转到解决方案树中的"我的项目"节点.点击此按钮:

在此输入图像描述

它应该导致以下文件:

Namespace My

  ' The following events are available for MyApplication:
  ' 
  ' Startup: Raised when the application starts, before the startup form is created.
  ' Shutdown: Raised after all application forms are closed.  This event is not raised if the application terminates abnormally.
  ' UnhandledException: Raised if the application encounters an unhandled exception.
  ' StartupNextInstance: Raised when launching a single-instance application and the application is already active. 
  ' NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected.
  Partial Friend Class MyApplication

  End Class

End Namespace
Run Code Online (Sandbox Code Playgroud)

在那里,你应该在代码编辑器的左侧ComboBox中有(MyApplication Events),在右侧的ComboBox中有事件列表.

注意:在创建此文件之前,您可能必须删除已有的空文件.