See
How to register/unregister an OCX/ActiveX programatically FAQ #7699
>Hi all,
>
>How do I detect within a VFP program if an Activex control has been
>registered successfully on a Windows machine (NT4 and WIN 2K) and if it does
>not exist in the machine, how do I register the control programmatically
>within a VFP program?
>
>We are still using VFP5. We are trying to upgrade an VFP program with
>a newly purchased calendar activex control. There are about 50 machines
>already running the application.
>
>Thanks.
>
>Kam.
--sb--