>You can do something similar with controls on forms.
>Place a control on a form with the Index property set to 0 and the visible property to False.
>At runtime, use this code: Load MyControl(Value). Where Value is an increment value.
>You can now set properties of the new instance of the control.
Yes, I've seen that today. But, this is not what I need. Or, at least, I don't think it will fit my needs.
To make it simple, I need to do a CreateObject() in the Load() of the form and have the object to be shown in the form. In this case, it is a calendar control. Our ActiveX control is a form and the Load() event, should use the CreateObject() to add the calendar in the form. We then do a Calendar.Visible=True after to show the calendar. This is followed by some adjustements for Left, Top, Width and Height.