This project is read-only.

Welcome!

The VB Converter analyses VB6 code and converts it to .NET 2.0 (C# or VB).
It uses a modified implementation VBParser (of the wondeful work of Paul Vick) and CodeDom.

Feel free to download it, contribute and comment.
For any other issues, please contact us: vbconverter@gmail.com

Features

  • Convert part of Visual Basic 6 code to C# and VB .NET
  • Batch converter (Files)

Roadmap

  • Refactor the CodeWriter module.
  • Add more VB6 expressions (such as Print)

Examples

Methods (Visual Basic 6)

Public Sub Main()
    Dim name As String
    name = InputBox("Enter your name: ", "VB6 App")
    If name = "" Then
        MsgBox "You must enter your name !", vbCritical, "Error"
    Else
        MsgBox "Your name is: " & name, vbInformation, "Info"
    End If
End Sub

Methods (C#)
public void Main() {
    string name;
    name = Interaction.InputBox("Enter your name: ", "VB6 App");
    if ((name == "")) {
        Interaction.MsgBox("You must enter your name !", Constants.vbCritical, "Error");
    }
    else {
        Interaction.MsgBox(("Your name is: " + name), Constants.vbInformation, "Info");
    }
}

Last edited May 28, 2014 at 2:12 PM by denis81, version 8