VB.Net to C# code converter

ImmuniCodeSM Introduces VBCSM - for Automatic Conversion of VB Source Code to C#
VBC is the only software available that takes VB6 or VB.NET code and turns it into C# inside Visual Studio.NET. VBC is an Add-In for Visual Studio.NET, accessible from Visual Studios Tools menu. Translating a VB6 or VB.NET project file to C# takes just one click. ImmuniCode's VBC increases productivity, decreases labor cost, and simplifies the translation process from VB6 or VB.NET to C#. VBC is available at a special pre-release price until April 1, 2003.[.netWire]

There are not many products that will do this conversion, I kind of wonder how well this product does the coversion. However cool this might be I think the price they are asking is a bit steep for a simple code converter.

2 Comments

  • I've been playing with the trial version. I have yet to convince it to convert a single line. The support people are being very helpful though!

  • Public Function FillComboBoxFromDatabase(ByVal drp1 As DropDownList, ByVal msql As String, ByVal DataTextFieldName As String, ByVal DataValueFieldName As String, ByVal ShowSelectYesNo As Boolean)
    ' function to add values inside the combo box from the database.
    Try
    Connection_OpenForFunctions()
    cmdSelectCommon = New SqlCommand(msql, myConnectionCommonForFunctions)
    dtrCommon = cmdSelectCommon.ExecuteReader
    drp1.Items.Clear()
    If ShowSelectYesNo = True Then
    drp1.Items.Add(New ListItem("Select : " & Trim(DataTextFieldName), "0"))
    End If
    Dim myText, myValue As String
    While dtrCommon.Read
    If Not IsDBNull(dtrCommon(0)) Then myValue = Val(dtrCommon(0)) Else myValue = "0"
    If Not IsDBNull(dtrCommon(1)) Then myText = Trim(dtrCommon(1)) Else myText = ""
    drp1.Items.Add(New ListItem(myText, myValue))
    End While
    dtrCommon.Close()
    myConnectionCommonForFunctions.Close()
    Catch ex As Exception

    Finally

    End Try
    End Function

Comments have been disabled for this content.