How to use my custom code in VB.NET projects

Most of the sample code I have written is in C#.

To get this converted to VB.NET the following tools are very useful:

All three provide only translation from C# to VB.NET.

If someone needs conversion from VB.NET to C# I found the following tools:

Comments (8)

  1. Jason Coyne says:

    why wouldn’t you just use the C# code from in the VB project? it doesn’t need to be translated at all, unles syou want to further modify it.

  2. Stefan says:

    It is not possible to integrated C# code in a VB.NET project in Visual studio.

    This is only possible with the command line version of a compiler.

  3. Angus Logan [Data#3] says:

    Hi Stefan,

    Have you found any VB.NET to C# translators?


  4. Ravichandran J.V. says:

    Does not convert fully and correctly.

    using System;

    using System.Data.SqlClient;

    public class Test


    private Button btn;

    this.btn.Click+=new ButtoneEventHandler(btn_Click);

    public void myMethod()


    using (SqlConnection sqlConn=new SqlConnection()






    Imports System

    Imports System.Data.SqlClient

    Public Class Test

    Private btn As Button

    Me.btn.Click+=New ButtoneEventHandler(btn_Click)

    Public Sub myMethod()

    Imports (SqlConnection sqlConn=New SqlConnection()




    End Sub

    End Class


    ‘ Converted from C# to VB .NET using CSharpToVBConverter(1.2).

    ‘ Developed by: Kamal Patel (


  5. Jimi says:

    I’m surprised you haven’t heard of Instant C#. I’ve converted tens of thousands of lines of VB.NET code with it.

  6. dhimant says:

    plz ,send me ,vb ,vc ++ projects..

    i will be thankfull to u