Responding to Automation Events
When events occur in elements of the Visual Studio integrated development environment (IDE), you can use objects from the automation model to respond to them.
You can use the objects, for example, to respond when:
A build is initiated or completed.
Someone clicks a Command Bar button.
A document is opened, closed, or saved.
Items are added, renamed, or removed from a solution or project.
A line is changed in the Code Editor.
A window is created, selected, moved, or closed.
The tasks below demonstrate how to respond to events in Visual Studio.
Task |
Description |
---|---|
Includes a complete list of automation event objects to which you can respond. |
|
Explains how to respond to events in Visual Basic. |
|
Illustrates how to respond to events in Visual C#. |
|
Explains how to respond to events in Visual Studio macros. |
|
How to: Create an Event Handler in a Macro for a Specific Type of Project |
Explains how to respond to project type specific events in a Visual C# or Visual Basic project by using a macro. |
How to: Respond to Events in a Specific Project (Visual Basic) |
Illustrates how to use automation to respond to events in Visual C# and Visual Basic projects. |
See Also
Tasks
How to: Add and Handle Commands
Walkthrough: Creating a Wizard
Concepts
Controlling Projects and Solutions