How to Convert VB6 to VB.NET in 2015

How to Convert VB6 to VB.NET in 2015

By Imran Salahuddin | June 30th, 2015 |

Moving out of VB6

With Microsoft announcing the phasing out of VB6, as a VB developer you will need to update yourself to the changes the VB.NET environment brings in. It takes significant effort for porting applications in VB to VB.NET. In .NET environment, backward compatibility to VB is not a high priority goal for Microsoft.

Migrating to .NET environment should be handled carefully as the major change from VB to VB.NET is that VB.NET is based on Common Language Runtime (CLR). For the .NET applications developed in VB, C++, C# or other languages, the CLR serve as an execution platform. VB as a programming language has undergone significant changes in the CLR new programming model. To make the best advantage of the .NET platform features and structures, it is better to rewrite the application than porting.

When you start VB6 to VB.NET, certain steps are taken. Begin with a plan, identify processes, gather requirements, and eventually build the architecture of the solution. Once your VB6 to VB.NET plan starts taking shape, then start with VB6 to VB.NET development.

Migration from VB6 to VB.NET should be done in a systematic way comprising of analysis and design phases upfront. This helps in an easier implementation to the .NET environment and saves time and cost associated with software development.

The VB6 to VB.NET analysis part is slightly different in this case. Begin by studying the current application, and try to identify code blocks that require changes. VB6 application migration to .NET should be carried out by converting the existing application to .NET and then fixing the converted code in .NET.

Here we list the VB6 to VB.NET migration steps:

  • Determine scope and perform requirement analysis.
  • Create a migration strategy and come up with migration effort.
  • Convert application logic to .NET framework.
  • Convert session and application variables.
  • Convert HTML form menus, UI items and perform unit testing.
  • Perform System testing.
  • Import legacy data and perform load testing.
  • Deploy to application server.

During migration, if the existing VB6 code has good interoperability between COM components and .NET framework, then place the existing code can call your library. This helps in saving time and focusing more on writing new code for the application.

Oddly, as much as everyone ridicules VB6 as a “toy” language, I’m seeing more and more VB6 jobs becoming available. The VB6-Developer (full-time) is starting to become a rare breed. As more transition to .NET, no one wants to go back to the “Dark Ages” before Enlightenment and its being reflected in opportunities and salaries. It’s not all that different to what happened with COBOL, which is still out there alive and kicking.

 

If done right, VB6 to VB.NET is an easy process, so if you or someone you know want to learn more about VB6 to VB.NET feel free to read our other blogs.

Imran Salahuddin on Linkedin
Imran Salahuddin
VP of Technology & Migration Services at Macrosoft Inc
Imran serves as Macrosoft’s VP of Technology & Migration Services. With two decades of industry experience, Imran continues to demonstrate his ability to ensure seamless migrations. Imran works with Project Managers, sales/strategy teams, and clients to ensure the successful migration of legacy applications. Moreover, Imran exhibits effective communication skills and an eye for quality service.

As a Microsoft Certified and PMI Project Management Professional, Imran can migrate a myriad of difficult technologies. Most recently, he migrated a VFP legacy application which communicated to networking equipment. Testing the application without detailed knowledge of the domain was the real challenge.

Imran also dedicates his time to IoT (Internet of Things), as well as Online Sales, and looks to improve upon all of Macrosoft’s existing verticals.
Recent Blogs

How to Virtualize your VFP Application
How to Virtualize your VFP Application
Read Blog
Spring cleaning your Legacy Applications with .NET Migration
Spring cleaning your Legacy Applications with .NET Migration
Read Blog
Java to .NET: Unleashing the Power of Transformation
Java to .NET: Unleashing the Power of Transformation
Read Blog
ASP.NET is better than ASP
ASP.NET is better than ASP
Read Blog
Trouble with VB6 Migration to .NET?
Trouble with VB6 Migration to .NET?
Read Blog

Copyright © 2024 Macrosoft Inc