Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding ActiveX control to a form
Message
 
To
27/06/2009 23:28:47
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Miscellaneous
Thread ID:
01408828
Message ID:
01408904
Views:
42
Hi Gene,

>I am trying to add a activex control GarXface.ocx to a form. I have tried dragging it from the component gallery and this does not work.
>I have been told that I need to add it to a form as a reference.

This control is a plain COM server, not an ActiveX control. To access its features you need to instantiate an object programmatically:

oPorts = CreateObject("GarXface4.ComPortNames")

If this line returns an error message, run the following command from the DOS window as an administrator:

REGSVR32 C:\Windows\System32\GarXface4.OCX

If this doesn't work either, execute the setup again.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform