Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OleControl must have container?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
OleControl must have container?
Miscellaneous
Thread ID:
00534134
Message ID:
00534134
Views:
48
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". So I tried putting the class in a container. When I try to instantiate the container, I get the same error. If I put the ole class in a form class and instantiate it, it works. So, I have two questions:

1) Must the oleControl in fact be instantiated within a container?

2) Must that container be a form?

I would rather have less overhead than a form if possible.

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform