Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OleControl must have container?
Message
From
24/07/2001 00:12:56
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00534134
Message ID:
00534235
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>>>I am using the oleControl base class to subclass a non-visual ActiveX control. When I try to instantiate the subclassed control in code, I get error 1435 "Object class is invalid for this container".
>>
>>What is the code you're using to instantiate the control?
>
>
>Local loControl
>
>* Instantiating ole class directly fails
>loControl = NewObject("oleMyControl","MyLibrary")
Can you give me at least a hint about what the control is? Or what it does? More than just that it's non-visual. Subclassed from...? OleBoundControl?

Have you tried using the newObject method of your form (or page, or whatever) to add it?
thisform.NewObject("oleMyControl"), for example.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform