Displays and allows editing of the properties of the collection being added or edited.
Dialog Box Options
Name
The name of the collection.
Based On
The collection this collection is to be based on. All existing collections are listed in this list box. If the collection is to be based on an existing collection you select it with this text box. If this collection is based on another collection, all the properties, methods, and events shells are copied from the base collection to this collection; none of the code that has been added to the properties, events and methods shells of the base collection is copied over.
Note this copying of properties, methods, and events is done only when the collection is created; there is no link maintained between the base collection and this collection, and if the base collection is modified after this collection is created, the modifications will not be reflected in this collection.
Collection Of
The class this collection is collecting.
Existing Class This collection is a collection of an existing class. All existing classes are listed in the list box; the class to collect should be selected from the list box.
New Class This collection is a collection of a new class. The name of the new class can be edited here, and the New Class Properties button will be enabled. Clicking the button displays a Class Module Builder dialog box so that the properties of the new class can be defined.
New Class Properties
Button to display the Class Properties dialog box to create a new class for this collection. This button is enabled when the Collection Of property is set to "[New Class]".
Instancing
Determines how an external application can create an instance of the collection. Other classes in the project containing this collection can always create an instance of this collection.
Note Only available if the active project is an ActiveX exe or dll.
Private Other applications are not allowed access to the type library information about this class, and cannot create instances of it.
Public Not Creatable Other applications can use objects of this class only if the project this class is in creates the objects first. Other applications cannot use the CreateObject function or the New operator to create objects from this class.
Single Use Allows other applications to create objects from this class, but every object of this class that a client creates starts a new instance of this component. Not allowed in ActiveX DLL projects.
Global Single Use Like Single Use, with one addition: properties and methods of this class can be invoked as if they were simply global functions. Its not necessary for the invoking application to explicitly create an instance of this class first; one will automatically be created. Not allowed in ActiveX DLL projects.
Multi Use Allows other applications to create objects from this class. One instance of the component will provide the objects created with this option.
Global Multi Use Like Multi Use, with one addition: properties and methods of this class can be invoked as if they were simply global functions. It's not necessary for the invoking application to explicitly create an instance of this class first; one will automatically be created.
This collection is a Top Level Object
Checking this option box makes this collection a top-level (root) object.