Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OleControl must have container?
Message
De
24/07/2001 00:12:56
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00534134
Message ID:
00534235
Vues:
13
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform