To resolve this problem, you must install the .ocx files
for the ActiveX controls on the computer before you upgrade
the project or before you use Visual Basic 6.0 ActiveX controls on a form in Visual Studio 2005 or in Visual Studio .NET. To do this, use one of the following methods:
- Install Visual Basic 6.0 on the computer that is running Visual Studio 2005 or Visual Studio .NET.
- Add the licensing keys to the registry.
Method 1: Install Visual Basic 6.0 on the computer that is running Visual Studio 2005 or Visual Studio .NET
Unlike earlier versions of Visual Basic, there are no conflicts
between Visual Basic 6.0 and Visual Studio 2005 or Visual Studio .NET when you install these programs
on the same system. In many cases, Microsoft recommends that you install Visual
Basic 6.0 on the computer that is running Visual Studio 2005 or Visual Studio .NET.
If Visual Basic 6.0 is
available on the computer, you can change the original
Visual Basic 6.0 project more easily before you upgrade to Visual Studio 2005 or to Visual Studio .NET.
For more information about how to install Visual Basic 6.0 and how to upgrade a
project from Visual Basic 6.0 to Visual Studio 2005 or to Visual Studio .NET, see the "References"
section.
Method 2: Add the licensing keys to the registry
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
To
add the licensing keys for the Visual Basic 6.0 controls to the registry,
follow these steps:
- Insert the Visual Studio 2005 or Visual Studio .NET Installation Disk that has
the \Extras\VB6 Controls folder in the in the CD-ROM or DVD-ROM drive. The
following list describes what disk to use for each product edition on CD-ROM:
Visual Studio 2005 (not the Microsoft Developer Network [MSDN] disk)
- Professional Edition - Disk 2
- Standard Edition - Disk 1
Note The VB6Controls.reg registry file is not on the distribution media for any Visual Studio 2005 product.
Visual Studio .NET 2003 (not the MSDN disk)
- All Enterprise Editions - Disk 2
- Professional Edition - Disk 2
- Standard Edition - Disk 1
- Academic Edition - Disk 2
Visual Studio .NET 2002 (not the MSDN disk)
- All Enterprise Editions - Disk 4
- Professional Edition - Disk 4
- Standard Edition - Disk 3
- Academic Edition - Disk 4
- Click Start, and then click Run.
- In the Run dialog box, type regedit, and then click OK.
- In the Registry Editor dialog box, click Import on the File menu.
- Locate the \Extras\VB6 Controls folder on the Installation CD-ROM, select the VB6Controls.reg file, and then
click Open. This step inserts all of the Visual Basic 6.0 ActiveX Controls
license keys in the registry.