Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to instantiate an OCX in Code rather than Drag & Dro
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00095813
Message ID:
00095935
Vues:
24
>Thanks again for your help. -Rick
>
>>>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
>>
>>Exactly, by default when you instantiate an object, it does not appear.
>>
>>I have those objects for each of my OCX.
>>
>>On some projects where many OCXs are mostly used, I drop them all in the same form object. So, I instantiate it at first and it lives for the entire application.

Do you leave the DynaZip OCXs on such a form, open for the whole application? I wouldn't do that with the DynaZip .OCXes. For some reason, they take up a lot of memory even when they are just sitting there. I instantiate each one just before I need it, and destroy it immediately when it's done.

I put each of mine in a container, which I instantiate where it's needed. The container has the .OCX in it, and has methods for setting up the zipping or unzipping.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform