Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does the following Fail?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00859246
Message ID:
00859627
Vues:
17
>Hi Larry
>
>I understand what you are saying but I still am missing why the same control can be created without a form using the "VPEControl.VPEControl.35" syntax but once it is subclassed as a VFP oleControl a form is required. This would be consistent if the class designer also forced me to use a form control but it does not. I can add my subclassed olecontrol to a container or custom class at design time and it works fine. The only thing I cannot do is add it to a container or custom class at run time using the AddObject method. However I can add the ActiveX control to a container or custom object at run time using the "VPEControl.VPEControl.35" syntax. So it appears to me that something is inconsistent with the olecontrol class in VFP.
>
>The solution I am using now is to simply to add the control to my custom class at design time. However, I was hoping to do it a run time so I could maintain a looser coupling between my classes in the class library.
>

Simon,
IMO, you should be doing the "work around". See MSKB#192693 for information on problems when using AddObject at runtime. It applies to most MS ActiveX controls and I've seen it with other vendors as well.

Regards.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform