Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to instantiate an OCX in Code rather than Drag & Dro
Message
From
29/04/1998 23:28:37
 
 
To
29/04/1998 19:42:42
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00095813
Message ID:
00095854
Views:
21
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform