This documentation is archived and is not being maintained.

Object-Oriented Programming in Visual Basic

Visual Studio 2008

Objects are central to Visual Basic programming: Forms and controls are objects. Databases are objects. If you have used Visual Basic for a while, or if you have worked through the examples in the documentation, then you have already programmed with objects, but there is a lot more to objects than what you have seen so far.

In the following topics, you will see how easy it is to create your own objects from the classes you define and to use objects to simplify your coding and increase code reuse.

Introduction to Objects in Visual Basic

Provides an introduction to the terms and concepts used in object-oriented programming.

Understanding Classes

Provides an overview of classes and an example of how to define a class.

Creating and Using Objects

Shows how to create and use instances of classes.

Collections in Visual Basic

Provides an overview of collections.

Events in Visual Basic

Shows how to declare and use events.

Delegates in Visual Basic

Shows how to declare and use delegates.

Interfaces in Visual Basic

Describes what interfaces are and how you can use them in your applications.

Inheritance in Visual Basic

Describes how to define classes that serve as the basis for other classes.

Shared Members in Visual Basic

Describes members that can be used without instances.

Early and Late Binding

Describes binding, which is performed by the compiler when an object is assigned to an object variable, and the differences between early-bound and late-bound objects.

Objects in Visual Basic

Describes what objects are and how they are used.

Programming with Components

Demonstrates how you can use Visual Basic to control objects provided by other applications.