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 19:42:42
 
 
To
29/04/1998 17:34:01
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00095813
Message ID:
00095835
Views:
20
>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform