Free Information Technology Magazines and eBooks

Wednesday, August 19, 2009

Convert C# to VB and Vice versa

Convert C# to VB and VB to C#One of my client called me this evening requesting to convert their customized FTP program (written in C#) to VB.NET. Since the company is downsizing, they want to maximize their VB programmers instead of hiring a C# programmer just to maintain the program. I was able to migrate the existing C# codes to VB.NET in just 2 days with the help of a free Visual Studio Add-In called CSharp To VB.Net VB.Net To CSharp Convertor.


To install the Add-in.
1. Download it from its Codeplex homepage then extract it to your hard drive.
2. Open the "setup.exe" and then follow the setup wizard.

To use it, Open your Visual Studio 2008 or 2005 project. Click the form or class you want to convert. On the code editor, right+click and you will see the added context menu as shown below.

Convert CSharp to VB.NET

To perform the conversion from C# to VB.NET, just click the menu and it will create a new class that contains the converted code. (please see screenshot below)

Converted VB.NET code from C#


For more coding tips & tricks, subscribe now.

2 comments:

KEREMKUSMEZER said...

At least mention the developer of the project :)
Kerem Kusmezer
Code Convertor Developer :)

Anonymous said...

Thank you very much Karem Kusmezer

Rafael