Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to instantiate an OCX in Code rather than Drag & Dro
Message
De
29/04/1998 23:28:37
 
 
À
29/04/1998 19:42:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00095813
Message ID:
00095854
Vues:
22
So then I assume you instantiate the form but you don't make it visible, do the dynazip stuff then release the form right? -Rick

>>How do you instantiate and manipulate an OCX control at run time without first going into the form designer at development time and dragging and dropping the ocx onto the form.
>>
>>I'm trying to invoke the 3rd party OCX control DynaZip in a prg file.
>
>As Nick mentioned, sub classing is the way to go.
>
>As for me, for Dynazip, since it does not relate necessary to a form, I created a form class containing it. At run time, I just instantiate that form class and can reference the OCX in it after. Sometimes, like for Dynazip, we want to be able to use it from various locations and there isn't necessary a need to drop it on the form.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform