How to convert VB to C#?

T

Tom

Hi,

I built an application with VB many years ago and I want
to use C# and dot net framework now.

How can I convert the VB6 code to C#? Do I need to firstly
convert VB6 code to VB.net and then convert VB.net to
C#.net?

If so, could anyone recommend those 2 translators?

Thanks
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi Tom,

You can migrate from VB6 to VB .NET with Visual Studio .NET's built-in
translator, but it will leave many things to be done manually. Then, I've
heard that guys from www.icsharpcode.com are working on a VB .NET -> C#
translator, so you might want to check it out.

Anyway, I would like you to realize that this is not just the matter of
syntax. Microsoft .NET's programming paradigm is completely different from
the VB6 one, so even with an ideal language syntax translator, you will most
likely to redesign the application - and this is a task no translator will
be able to do in foreseable future.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top