Dela via


Visual Basic Concepts

Extending the Visual Basic Environment with Add-Ins

The Microsoft Visual Basic development environment comes with a fixed level of functionality and a select set of tools. You may find that you require some functionality or a tool that doesn't exist in Visual Basic's Integrated Development Environment (IDE), or find yourself repeatedly doing a simple task. To solve this dilemma with prior versions of Visual Basic, you might have purchased pre-fabricated controls or toolsets to augment the IDE. Now, you can elect to create your solutions from within Visual Basic using its extensibility object model.

Objects from this model can be programmatically used to construct add-ins — modular ActiveX components that connect to the IDE and provide it additional functionality. In many cases, if the functionality is generic enough, these ActiveX components can even be used in other applications (that can use ActiveX components).

Add-ins can be constructed to work inside or outside the IDE, or both. They can automate repetitive tasks, monitor the IDE for the occurrence of certain events, act upon those events, or perform complex tasks. Add-ins can be activated through menu commands, toolbar buttons, or through Windows events.

One variation of add-in is a Wizard. A Wizard is a step-by-step instructive program you can create to lead users of your applications through a particularly difficult procedure.

With add-ins and the extensibility model, you are now able to tailor the Visual Basic IDE to your unique needs with applications that do exactly what you want them to do.

Chapters

Add-Ins Overview

Explains extensibility and how it's implemented in Visual Basic in the form of add-ins, and provides a step-by-step procedure for creating a simple, working add-in.

Extensibility Model Objects and Structure

Provides a map to the objects you can use to create and connect add-ins, along with links to more detailed reference information on each.

How to Build an Add-In

Offers in-depth discussion of the steps and issues associated with creating add-ins to automate programming tasks. Uses code from a sample application included with Visual Basic.

Connecting and Exposing Add-Ins

Covers add-in essentials and illustrates methods for connecting and exposing your add-ins in the Visual Basic environment.