Export (0) Print
Expand All
12 out of 23 rated this helpful - Rate this topic

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.

Related Sections

Introduction to Objects in Visual Basic

Provides an overview of how objects are used in Visual Basic.

Creating and Using Objects

Shows how to create and use instances of classes.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.