Welcome to TechNet Blogs Sign in | Join | Help

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:

http://www.aspalliance.com/aldotnet/examples/translate.aspx
http://www.kamalpatel.net/ConvertCSharp2VB.aspx
http://www.ragingsmurf.com/vbcsharpconverter.aspx

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

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

http://w1.311.telia.com/~u31115556/desc/programs.htm#BabbelFisken
http://www.codeproject.com/csharp/GBVB.asp

Published Tuesday, April 06, 2004 7:04 PM by Stefan_Gossner
Filed under:

Comments

Tuesday, April 06, 2004 8:09 PM by Jason Coyne

# re: How to use my custom code in VB.NET projects

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.
Tuesday, April 06, 2004 8:51 PM by Stefan

# re: How to use my custom code in VB.NET projects

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.
Tuesday, April 06, 2004 7:54 PM by Jason Row

# C# to VB code converters

Wednesday, April 07, 2004 7:30 AM by Angus Logan [Data#3]

# re: How to use my custom code in VB.NET projects

Hi Stefan,

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

Regards
Wednesday, April 07, 2004 8:15 AM by Ravichandran J.V.

# re: How to use my custom code in VB.NET projects

http://www.kamalpatel.net/ConvertCSharp2VB.aspx

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()
{
sqlConn.Open();
}
}
}

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()
{
sqlConn.Open()
}
End Sub
End Class

'----------------------------------------------------------------
' Converted from C# to VB .NET using CSharpToVBConverter(1.2).
' Developed by: Kamal Patel (http://www.KamalPatel.net)
'----------------------------------------------------------------
Sunday, April 25, 2004 2:32 AM by Jen

# re: How to use my custom code in VB.NET projects

Saturday, May 29, 2004 7:31 AM by Jimi

# re: How to use my custom code in VB.NET projects

I'm surprised you haven't heard of Instant C#. I've converted tens of thousands of lines of VB.NET code with it.
Friday, July 30, 2004 10:41 AM by Stefan Go

# re: Creating a RSS Feed for your MCMS Web site

Saturday, August 07, 2004 8:05 AM by dhimant

# re: How to use my custom code in VB.NET projects




plz ,send me vb.net ,vb ,vc ++ projects..
i will be thankfull to u
Thursday, January 22, 2009 12:53 AM by C# to VB Conversion | keyongtech

# C# to VB Conversion | keyongtech

New Comments to this post are disabled
 
Page view tracker