Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent of AddObject()
Message
De
14/04/1998 21:17:35
 
 
À
14/04/1998 21:12:10
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00091905
Message ID:
00091992
Vues:
27
>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform