How can I migrate VB6 code to .NET using the built in Visual Studio Upgrade Wizard?

Posted on 2009-05-26
Medium Priority
Last Modified: 2012-05-07

I'm wondering if there's some way to upgrade some old VB6 code that I didn't write to .NET using Visual Studio 2005's Upgrade Wizard? The problem arises when I try to do the conversion, I get this error:

Upgrade failed: Exception occurred: Could not load referenced components:
DBLIST32.OCX (1.1.0)
DBGRID32.OCX (1.0.0)
dw2003RelatedForm.ocx (1.0.0)
It is recommended you install VB6.0, with all referenced components, and ensure the application compiles and runs before upgrading.

So I did some googling and it seems that if I was able to install VB6.0, I would get these references and theoretically have no problem with the migration. Problem is, I don't have access to old VB6.0 IDE. Any suggestions?

Question by:devvy
  • 2
  • 2
LVL 46

Accepted Solution

tbsgadi earned 1500 total points
ID: 24480581
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:
1. Install Visual Basic 6.0 on the computer that is running Visual Studio 2005 or Visual Studio .NET.
2. Add the licensing keys to the registry.

Try using the second method



Author Comment

ID: 24484517
Thanks tbsqadi! Once I get ahold of my Visual Studio 2005 disk, I'll give that a try.

Author Comment

ID: 24540258
I applied this solution as recommended. I'm still getting errors however; now it's looking for and can't find "DBLIST32.OCX". Is there some other set of references I need to upgrade the project?
LVL 46

Expert Comment

ID: 24543890
The Data Bound List Controls 6.0 is part of VB6

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
If you are looking for an automated tool which can generate reports for Outlook emails and other items from PST file, then you can go for Kernel PST Reporter tool. The reports which are created by this tool are helpful to analyze and understand PST …
Suggested Courses

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question