Responding to Events (Visual Basic and Visual C# Projects)
Environment events are divided into two categories, general environment events and environment events that apply to specific types of projects. General environment events include window events, task list events, tool window events, and so on.
Environment events specific to Visual C# and Visual Basic projects are defined in VSLangProj and VSLangProj80. The EnvDTE80 namespace contains two event objects specific to projects. These are ProjectsEvents and ProjectItemsEvents objects and they are also available per project type basis. However, ProjectsEvents and ProjectItemsEvents are defined for all project types in the Visual Studio Integrated development environment (IDE). Events that apply to specific types of projects are reference events, import events (Visual Basic only), Web reference events, build manager events, projects events and project items events.
In This Section
How to: Handle Automation Events (Visual Basic)
Describes how to handle general automation events in a Visual Studio add-in by using Visual Basic.How to: Handle Automation Events (Visual C#)
Describes how to handle general automation events in a Visual Studio add-in by using Visual C#.Event Objects (Specific to Types of Projects)
Provides a list of the event objects specific to Visual C# and Visual Basic projects. Also explains how to find the string entries used to specify a particular project type for an event handler or Visual Studio add-in.How to: Respond to Events in a Specific Project (Visual Basic)
Describes how to handle events that apply to specific types of projects in a Visual Studio add-in by using Visual Basic.How to: Respond to Events in a Specific Project (Visual C#)
Describes how to handle events that apply to specific types of projects in a Visual Studio add-in by using Visual C#.How to: Respond to Web References Events (Visual Basic)
Describes how to handle Web reference events that apply to specific types of projects in a Visual Studio add-in by using Visual Basic.How to: Respond to Web References Events (Visual C#)
Describes how to handle Web reference events that apply to specific types of projects in a Visual Studio add-in by using Visual C#.
Reference
VSProjectEvents2
Extends the VSProjectEvents class. The new class provides access to web reference events.Events2
Allows access to all events in the extensibility model. Events may also be exposed from specific objects within the extensibility model.
Related Sections
Responding to Automation Events
Describes how to handle events using the general automation model.Introduction to Project Extensibility
Describes the object model for extending Visual C# and Visual Basic projects in the Visual Studio IDE.