This topic creates the Coffee project, with its CoffeeMonitor class and its TestForm form class.
Note This topic is part of a series that walks you through creating a sample ActiveX EXE. It begins with the topic Creating an ActiveX EXE Component.
To create the Coffee project
The default value for the Instancing property is MultiUse. This allows clients to create multiple instances of the CoffeeMonitor class. For a full discussion of the Instancing property, see "Instancing for Classes Provided by ActiveX Components," in "General Principles of Component Design."
The project name, Coffee, is also used as the name of the component’s type library. It can be combined with the name of each class the component provides, to produce unique class names.
If two components each provide a CoffeeMonitor class, the fully qualified class name lets you specify which component’s CoffeeMonitor class you want to use, for example, Coffee.CoffeeMonitor
.
Note If you’ve used the Options dialog box (accessed from the Tools menu) to disable the Add Form dialog box, you’ll just get the form. This is okay.
Object | Property | Setting |
Form | (Name) Caption |
TestForm TestForm - Modal |
File | File name | Extension |
Form | Coffee_TestForm | .frm |
Class module | Coffee_CoffeeMonitor | .cls |
Project | Coffee | .vbp |
For More Information See "Choosing a Project Type and Setting Project Options" in "General Principles of Component Design."
This topic is part of a series that walks you through creating a sample ActiveX EXE.
To | See |
Go to the next step | Showing Forms from the CoffeeMonitor Class |
Start from the beginning | Creating an ActiveX EXE Component |