By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

How to convert VB to C#?

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Tom" <ke*****@yahoo.com> wrote in message
news:22*****************************@phx.gbl...
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


Nov 20 '05 #2

P: n/a
Hi,

http://scottwater.com/blog/posts/142.aspx
http://www.immunicode.com/products.aspx

Ken
--------------
"Tom" <ke*****@yahoo.com> wrote in message
news:22*****************************@phx.gbl...
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

Nov 20 '05 #3

P: n/a
"Tom" <ke*****@yahoo.com> scripsit:
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?


VB6 -> VB.NET -> C#:

<http://www.ellkay.com/ConvertVB2CSharp.htm>

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.