Saturday, June 18, 2011

How to Enable ActiveX in the Registry


1. Click the Windows 'Start' button and enter 'cmd' into the search text box. Press 'Enter' to open the command line utility in Windows.
2. Type 'Regsvr32 /?' to view a list of ActiveX registration options. The utility serves only to register and unregister an ActiveX component in the registry, so only a few options are shown.
3. Type the following text to register your control:Regsvr32 /s your_control.OCXReplace 'your_control' with the name of your ActiveX component. This command enables it in the registry and allows you to use it in your software development.