Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

How to: Handle Application Events (Visual Basic) 

Visual Basic provides several application-level events including Startup, Shutdown, StartupNextInstance, and UnhandledException. Code for these events is stored in the ApplicationEvents.vb partial class file, which is hidden by default. You can access the Code Editor window for application events from the Application page of the Project Designer.

To access code for application events

  1. Select a project in Solution Explorer, and then on the Project menu, click Properties.

  2. Select the Application page.

  3. Click the View Application Events button to open the Code Editor.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft