Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to instantiate an OCX in Code rather than Drag & Dro
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00095813
Message ID:
00095935
Views:
23
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform