To add an instance of an ActiveX designer to a project, the end user clicks the Add ActiveX Designer command on the Project menu and selects a designer from those listed on the submenu. The list contains the names of all the ActiveX designers that have been added to the development environment. In response, Visual Basic takes the following steps:
Visual Basic calls CoCreateInstance, passing the CLSID of the visual designer, to create a visual designer to manage the user interface. The designer's class factory ensures that any required licenses are present. If so, it creates the object.
Visual Basic creates a default instance of the visual designer in much the same way that it creates a default instance of Form1.