One of the questions we get asked from time to time is what guidance can you give with regard to upgrading a Visual Basic 6 application to VB.NET. Fortunately Microsoft has published a wide range of material addressing just this subject.
Before deciding to upgrade an application from Visual Basic 6.0 to Visual Basic .NET, it is helpful to understand why you should consider upgrading at all. Usually, you have business requirements that compel you to upgrade an application from Visual Basic 6.0 to Visual Basic .NET. Common reasons, or drivers, to upgrade an application to Visual Basic .NET are:
Microsoft has put together an extensive set of guidelines at Upgrading Visual Basic 6.0 Applications to Visual Basic .NET to help developers ease the migrating process. These guidelines provided a platform for understanding obstacles that might be encountered migrating different kinds of applications.
There are a few features in VB6 that are not supported in VB.NET. Those features are:
Due to the differences between VB6 and VB.NET most applications will require some rework for components that cannot be mapped directly to a component of VB.NET. The easiest way to determine the amount or rework required is to use the Upgrade Wizard available in Visual Studio and review a list of issues in the upgrade report the wizard generates.
Another tool you have in your arsenal is the Visual Basic 6 Code Advisor. The code advisor is an add-in that once installed can scan existing VB6 projects to ensure they meet predetermined code standards. The Code Advisor can suggest changes and best practices to ease your migration from VB6 to Visual Basic .NET, and enables you to create custom scanning rules to check your VB6 code for compliance with your own personal or development team best practices.
Arming yourself with as much information as possible is your best approach in converting your applications. Microsoft has published a free book on the subject of converting your applications. Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET is the complete technical guide to upgrading Visual Basic 6 applications to Visual Basic .NET, covering all upgrade topics from APIs to ZOrders.
Thanks,John Hinz
Developer AdvisorMicrosoft Canada