upgrading from vb6 to ....???

RGuillermo used Ask the Experts™
I have a few applications developed in vb6.
I need to upgrade them but would you please explain me what is the difference between visual basic .net and visual basic studio??
and what are the tools if posible free to upgrade??
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

The following simple example demonstrates similarity in syntax between VB and VB.NET. Both examples pop up a message box saying "Hello, World" with an OK button.


Private Sub Command1_Click()
    MsgBox "Hello, World"
End Sub

A VB.NET example, MsgBox or the MessageBox class can be used:

Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
        Msgbox("Hello, World")
    End Sub
End Class

There are some major difference between vb6 and .net 2010 (vb10). mostly the syntax is the same but in VB.Net all procedure calls must be made with parentheses, whereas in VB6 there were different conventions for functions (parentheses required) and subs (no parentheses allowed, unless called using the keyword Call).

Microsoft currently supplies two major implementations of Visual Basic: Microsoft Visual Studio 2010, which is commercial software and Visual Basic Express Edition 2010, which is free of charge
RGuillermoProject Manager


So VB.net and VB10 are the same??
The following link is the information wshark83 supplied, along with the rest of the artical.


If you are looking to upgrade I would suggest Visual Basic 2010 Express addition if you wanted something better for free. If you are looking to pay then Visual Studios 2010 Ultimate is a good route. The following links are downloads sites from Microsoft;

Visual Basic 2010 Express:

Visual Studios 2010 Ultimate:

Difference between .NET and VS.NET:

"The .NET framework is the layer which is installed on an Operating system (like windows) which holds everything you need to run a .NET application. It contains the libraries which provide functionality to, for example, open files, read xml, and so on.
The .NET framework also includes the compilers for the various .NET languages. Like 'csc.exe' (C# compiler). This gives you the opportunity to write .NET applications, compile them and run them with only the .NET framework installed. Much like java does when you install the jvm (java virtual machine).

However, you would have to use a simple text editor, like notepad, which wouldn't help you much by making the code you write prone to mistakes.

This is where visual studio comes in. VS.NET needs the .NET framework. VS.NET won't function without it. Whenever you install VS, the install procedure will also install the .NET framework. VS.NET makes it much easier to create applications on the .NET framework by generating source code when you i.e. build a windows or web form. Also it makes compiling against the aformentioned compiler much easier. Note however that VS.NET uses the compiler (like the csc.exe) on the background while compiling.

You could say that VS.NET is a very fancy notepad for creating .NET applications in any way, shape or form."


Let me know if you have any more questions.
Top Expert 2009

I think this is the simple answer you are looking for. Visual Basic .NET is one language, and a part of Visual Studio. A full-blown Visual Studio copy also includes Visual C#, C++, plus many tools and stuff. So think of VB.NET as a member of Visual Studio.
Top Expert 2009
Oh, and by the way, forget the converting. You will need a complete from-scratch rewrite of code. There is no VB6-to-VB.NET converter, no matter what you read. The last converter came in VS2008, and it commented out many more lines than the few it converted. Unless you have a simple "Hello World" application, get rerady to learn .NET.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial