General information
Category:
ActiveX controls in VFP
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only