Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing MSComm Control
Message
From
18/07/2000 15:37:34
 
 
To
18/07/2000 15:05:32
Gregg Geeslin
Kwajalein Range Services
Apo, California, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00393493
Message ID:
00393999
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform