There are many converters out there which convert C# to VB and vice-versa. But it is not very convenient to go online and perform a conversion every now and then. This is where offline converters come in. Offline converters are very handy and useful and can be added to the Visual Basic developement environment as an add-in utility for one’s convenience.
C# to VB Add-In:
- Download offline converters [the most obvious].
- Start Visual Basic .NET application. Go to Tools –> External Tools.
- A pop-up box opens. Click on [Add].
- Title: Convert C# to VB .NET
Command: (locate the exe file of the converter) and specify it here with full path e.g. C:\ConvertCSharp2VB\ConvertCSharp2VB.exe
Arguments:
Initial Directory: - [OK] and you’re done!
Now you can just click on Tools –> Convert C# to VB .NET and use the converter as and when you wish to.
Reference: Kamal Patel’s Converter