Objects in Visual Basic
When you create an application in Visual Basic, you constantly work with objects. You can use objects provided by Visual Basic, such as controls, forms, and data access objects. You can also use objects from other applications within your Visual Basic application. You can even create your own objects and define additional properties and methods for them. Objects act like prefabricated building blocks for programs — they let you write a piece of code once and reuse it over and over.
The following topics discuss objects in more detail.
In This Section
- Objects and Classes
-
Provides an overview of objects and classes.
- How to: Create an Object
-
Explains how to create an object so you can use its members.
- How to: Reuse a Working Component
-
Describes how to use functionality that has already been written and debugged.
- How to: Define a Class That Uses Members of an Existing Class
-
Shows how to use properties and methods of a base class in your derived class.
- Relationships Among Objects
-
Discusses object hierarchies, containers, and collections.
- Object Members
-
Summarizes the fields, properties, methods, and events exposed by objects.
- How to: Access Shared and Nonshared Members of an Object
-
Explains how to read, write, or call a member of an object that you have created.