How to open visual base program 6 using visual studio.net

I want to open a program (written in Visual Basic 6) that will open in Visual Studio.net. Please guide how can I do this?

When I tried to open the VB6 program (.vbp) directly from the OPEN project option in visual studion.net, I got this error,

"Visual Basic 6 (.vbp) files cannot be opened in Visual Studio"

+7
source share
5 answers

I am trying to open in VS 2010.

Visual Studio 2010 does not support VB6 projects. See link here

From the msdn documentation:

Visual Studio 2010 does not provide tools for updating applications and projects from Visual Basic 6.0. If you want to upgrade your project from Visual Basic 6.0 to Visual Basic 2010, you can use the upgrade tools provided with earlier versions of Visual Studio, and then upgrade the project again in Visual Studio 2010.

+7
source

Speaking of my experience, it is not easy to open a Visual Basic 6.0 project in any version of Visual Studio above 2008.

Although version 2008 and below provides an automatic function for converting Vb6 code into a VB.net framework. But the problem starts after the conversion, it skips some code, adds a function / variable in itself or modifies the functional behavior in itself, while VB.proj will be created with an error, and you won’t be able to open it somewhere as a file solutions. Third-party tools are also the same.

If you want to open the VB6 code, try the Visual Basic 6.0 Portable edition. But the headache will still follow you, please follow this link Installing VB6 on Windows 7 (or Windows 8) (or Windows 10)

+4
source

There is a plugin called Visual Basic Tools for Visual Studio , which provides the following features:

  • load classic VB workspaces and project files and offers quick access to extension options

  • integrates with the solution explorer and code editor that supports syntax highlighting, a basic description (allows you to expand / collapse methods, properties and types), as well as support the navigation panel.

  • Classes, types, modules, forms, and controls can be checked using the Object Browser and the class view.

From reading it is not clear whether you can really build a project, although it says:

The import tool creates a new solution and projects compatible with MSBuild.

+2
source

Make sure you click on the project file itself. Right-click on the file and select "Open With" and select your visual studio program. A conversion may be required, and if so, it will prompt you to convert the project.

Thanks!

0
source

Download Visual Basic Tools for Visual Studio, allows you to work with classic workspaces and VB projects

0
source

All Articles