Object-Oriented Programming in Visual Basic
Objects are central to Visual Basic programming. Forms and controls are objects. Databases are objects. If you've used Visual Basic for a while, or if you've worked through the examples in this Help file, then you've already programmed with objects, but there's a lot more to objects than what you've seen so far.
In the following topics, you'll 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.
In This Section
- Introduction to Objects in Visual Basic
- Provides an introduction to the terms and concepts used in object-oriented programming.
- 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.
- Shared Members
- Describes members that can be used without instances.
- Creating and Using Objects
- Shows how to create and use instances of classes.
- Managing Groups of Objects
- Provides techniques for working with arrays and collections of objects.
- Obtaining Class Information at Run Time
- Shows how to determine the class that an object belongs to.
- Understanding Classes
- Covers object creation and lifetime issues in a step-by-step procedure.
- Events and Delegates
- Shows how to declare and use events and delegates.
- Interfaces in Visual Basic .NET
- Describes what interfaces are and how you can use them in your applications.
- Describes how to define classes that serve as the basis for other classes.
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.