Before performing a VB6 migration to .NET, there are many factors to consider. For instance, converting from Visual Basic 6 to .NET is not suitable for some applications, either because they will not profit from the new platform's technologies or because the cost or complexity of the VB to .NET upgrade strategy is prohibitive. However, in other cases the migration benefits far outweigh the costs, which is why a Visual Basic 6 to .NET conversion should be considered on a per-application basis.
Microsoft Visual Studio .NET is the development environment that you will use to develop and maintain Visual Basic .NET applications. You will also use it to run the upgrade wizard that will convert your Visual Basic 6.0 projects to Visual Basic .NET projects.
Some common reasons or drivers to upgrade an application to Visual Basic .NET are the following:
An application with a short expected lifetime because of changing business needs or processes is unlikely to be worth upgrading. However, an application whose functionality remains core to the business and will remain so for a period that is sufficiently longer than the length of the upgrade project is a good candidate for upgrading.
The Visual Basic Upgrade Wizard is the tool, built by Mobilize.Net for Microsoft, that you will use to perform the automatic steps to convert Visual Basic 6.0 source code and project files into Visual Basic .NET. The Upgrade Wizard is built into Visual Studio 2003 and runs automatically when you try to open a Visual Basic 6.0 project. There are no special steps required to install or run it.
When making a decision whether to upgrade or not it is necessary to gather the following information:
To gather the necessary information it is necessary to make the following assessments with respect to the application:
Applications that are responsible for processing important business data are highly valuable to your business. If there are no other applications, such as third-party off-the-shelf products, available to process this data, ensuring the lifespan of your application by upgrading it to Visual Basic .NET may be a logical step.
Applications with inputs and outputs based on legacy file formats that are not easily translatable may be problematic to upgrade. On the other hand, moving an application to Visual Basic .NET and upgrading data to a more general format, such as XML, may leverage your application for future enhancements or changes in technology.
The best time to upgrade is when the application code base is stable but is due for enhancements.
Yes. The following applications are only partially supported or not supported at all by the upgrade wizard:
To accurately assess your development environment, you need to consider the skills of your development team. The productivity of developers in an upgrade project depends on their knowledge of the existing source code and the target technologies.
In general, it is recommended that the developers undergo full training in Visual Basic .NET before they attempt an upgrade project.
You must also consider other factors, such as the existence of test cases and how well your development team understands the application that will be upgraded.
When it is necessary to update an application, you have four broad options to choose from: upgrade, reuse, rewrite, or replace.
There may be partial solutions. If you find that the indicators for choosing to upgrade apply to part of your application while the indicators for choosing to reuse apply to other parts, you may want to consider a partial upgrade.
Yes. Controls and components written in one language can easily be used in another language because the CLR unifies all data types. Anyone who has struggled to get a Visual Basic 6.0 user control to work in a Visual C++ project can recognize the benefits of this interoperability.
Not only can you easily use a component written in another .NET language, you can also inherit from a class written in any other .NET language.
Yes. Visual Studio .NET provides a very high level of integration with SQL Server. You can connect to SQL Server using Server Explorer. After you are connected, you can browse the database and even create new objects.
In particular, you can create and edit stored procedures written in the native SQL Server procedure language TSQL.
Application security is an important feature of Visual Basic .NET. The .NET Framework provides a set of sophisticated security features without overcomplicating requirements for developers.
Security management in the CLR prevents others from modifying the assemblies that contain an application or its dependent components. It also ensures that components cannot access memory that they are not authorized to access.
Yes. Visual Basic .NET has many new features that have been designed to simplify rich client application deployment and that can be used to increase the performance of an application.
As of March 2005, Microsoft ended the mainstream phase of support for Visual Basic 6.0, and entered into a period of extended phase support. The current extended phase support is available until March 2008, at which point Visual Basic 6.0 will no longer be supported.
Free support for Visual Basic 6.0 is no longer available. During the extended phase, customers can still receive professional product support for Visual Basic 6.0 through telephone and online incident support channels on a per-incident fee basis or through Premier Support.
Similarly, critical updates and hotfixes are only available for a fee during the extended phase.
Using the upgrade wizard will provide you with the following benefits: