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 20:05:33
 
 
To
29/04/1998 17:34:01
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00095813
Message ID:
00095836
Views:
20
Usually, (it doesn't work for all ActiveX/OCXs) you can:

oOCX = CreateObject("MyControl.MyControl.1")

The string between "" is in fact the ProgID key that you can find in the Registry for that OCX.

This way, you don't need to use a form container, etc.

Vlad

>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.
>
>Thanks for you help. -Rick
Previous
Reply
Map
View

Click here to load this message in the networking platform