Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing MSComm Control
Message
De
18/07/2000 15:37:34
 
 
À
18/07/2000 15:05:32
Gregg Geeslin
Kwajalein Range Services
Apo, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00393493
Message ID:
00393999
Vues:
18
>Thanks, Jon, that was just what I was missing.

Welcome.

>I tried it and it works. Is it possible to add activex controls like this one to containers other than forms? That was what Tom was trying to do.

AFAIK, the answer is No. You have to add the ActiveX/OLE object to an OleContainer and the OleControl has to be contained by a form. If you want to avoid using the container & form, you can instantiate the object directly with oMsComm=CreateObject('MsCommLib.MsComm'), but that's an Automation object, not an ActiveX.

FWIW, I instantiate ActiveX objects programmatically as often as possible. Dragging and dropping ActiveX objects onto forms creates dependencies on that version of the ActiveX, if I remember correctly.

HTH,
Jon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform