Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objects
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00497117
Message ID:
00497188
Vues:
10
>is it possible to create an instance of an object wherein the only clue u have about the object is its name...
>
>this sample doesnt work, but is this possible...
>
>dim oButton as object
> set oButton = createobject("ButtonName")
> oButton.properties = xx
>
>thanx,
>Benj

What kind of object? Your sample will work as is with ActiveX DLL and EXE component.

If you are talking of OCX, you must use Controls.Add.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform