CREATING MODULES

To create a class module select “Add Module” from “Project” menu.

CLASS MODULES

Object components are built using a special VB module type called a class module. The class module can contain properties, methods, and events and can consume properties, methods, and events from other classes.

CREATING CLASS MODULE

There are two types of class module (code component):

1. In-process Components.  

                            

 When class (code components) is created as an Active X DLL, it will run as an in-process component, in the same process as the client application.

2. Out-of-process Components.                  When class (code component) is created as an Active X EXE, it will run as an out-of-process component, in a different process as the client application.                                          Following is the process of creating a class module:

1)   An Active X DLL (or Active X EXE) is selected from the New Project window.

2) VB will add a class module under the project explorer window (the default name of the class is class1). The Active X DLL project doesn’t has any Forms.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s