• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

Vb 6.0 project to C#

Hi

Is it possible to upgrade a vb 6.0 project to c#


Thanks
Shiju S N
0
Shiju Sasidharan
Asked:
Shiju Sasidharan
2 Solutions
 
Shiju SasidharanAssoc Project ManagerAuthor Commented:
if not, is there any alternative for the same
0
 
prakash_prkCommented:
You can not convert a vb6.0 project to C#.

But u can try the following.
first upgrade the vb6.0 project to vb.net project, then convert the vb.net project to C#. there is no direct way of converting VB.NET to C#.

You can use code converters like
http://www.codeproject.com/csharp/GBVB.asp
http://www.freedownloadscenter.com/Programming/Visual_Basic_Tools/VB_Net_to_C__Converter.html

regards
prakash
0
 
fridomCommented:
You probably mean automagic? AFAIKT no. But of course you can re-implement it C#. (although that probably is a poor idea)

Regards
Friedrich
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Bob LearnedCommented:
1) Migration from VB6 is messy at best

2) You could migrate from VB6 to VB.NET, and then convert the code from VB.NET to C#

3) If you decide down that path, be prepared for a lot of work

4) I would favor reworking with the way C# is optimized

Bob
0
 
MogalManicCommented:
Use the VB Upgrade wizard (http://visualbasic.about.com/od/imhoinmyhumbleopinion/l/aa120102a.htm) and then use one of the tools described above to convert the vb.net code to c#.
0
 
Shiju SasidharanAssoc Project ManagerAuthor Commented:
ok fine

Thank you all for the comments
and i feel, prakash_prk has come up with exact result i was looking for

0
 
Shiju SasidharanAssoc Project ManagerAuthor Commented:
is there any free tool available for direct conversion from Vb.net to c# ?
0
 
Bob LearnedCommented:
There are a few converters, but none of them are perfect.  There are some significant syntax differences between VB.NET and C# that prevent 100% conversion, such as brackets [] for index arrays:

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21508479.html

Bob
0
 
Shiju SasidharanAssoc Project ManagerAuthor Commented:
Thank you bob
here are the links suggested by Bob

ASP.NET Alliance
C# to VB.NET Translator:
http://authors.aspalliance.com/aldotnet/examples/translate.aspx

Developer Fusion (#develop)
Convert C# to VB.NET (online):
http://www.developerfusion.com/utilities/convertcsharptovb.aspx

E-IceBlue
TransKing (purchase):
http://www.e-iceblue.com/

Elegance Technologies
C-Sharpener For VB:
http://www.elegancetech.com/CSVB.aspx

KamalPatel.net
Convert C# to VB.NET (online):
http://www.kamalpatel.net/ConvertCSharp2VB.aspx

VB.Net to C# Converter 1.32 (shareware):
http://www.soft32.com/download_26228.html
http://www.vbconversions.com/

<XML For ASP.NET /> Developers
C# to VB.NET Web Service Proxy Example:
http://www.xmlforasp.net/codeSection.aspx?csID=44
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now