Theoretically, you should use a OLE Container Control. Look in the help at OLE Container Control. It has an example.
Practically, you can use CreateObject directly to create an object, but the parameter passed to CreateObject must be the value of the ProgID registry key for that control:
oOle = CreateObject("AControl.AControlCtrl.1") && or something like that :)
Vlad
>If I create a class based on an OLE Control. Then try to instanciate it it won't let me. I think I'm doing this right but I'm not sure.
>
>oOle=CreateObject('MyOleClass')
>
>It works for a form class.
>
>I just want to know what BaseClasses it works for and doesn't work for.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only