views:

87

answers:

1

Please explain how to replace the ActiveX controls within a Visual Studio 2005 project (C#) to updated versions.

+1  A: 

Visual Studio knows what ActiveX controls are available, and where to find them, by examining the registry. That's essentially what regsvr32 does... create appropriate registry entries for COM objects (including ActiveX controls).

To upgrade your controls:

  • Close Visual Studio (for good measure... not sure if this is a strict requirement)
  • Install the updated ActiveX controls using their installer or regsvr32 as appropriate
  • If the old version and new version have the same COM interface, you're done. If not, you'll need to fix the references section of your project (delete the old reference, add a new COM reference)
Eric J.