Click to See Complete Forum and Search --> : [RESOLVED] VB -> C#
{FPP}
Feb 3rd, 2006, 11:28 PM
I are there any converters for VB -> C#. I have seen a few for VB.NET but not VB. I am trying to convert this.
http://www.informit.com/articles/article.asp?p=375499&seqNum=2
Any help in doing so would be great :thumb:
Thanks
-FPP
jmcilhinney
Feb 4th, 2006, 01:50 AM
See my sig for a link. I've seen others on the net too i think. I once searched for "convert C# VB" and found a few, but I don't remember how many were that direction.
Rattlerr
Feb 4th, 2006, 01:53 AM
I just used the VS 2005 too upgrade ...Then worked out the problems myself...Then from their you can use one of those sites to Convert the VB.NET to the C#..
Thats if you dont find one ...But i looked at that site your talking about Visual Basic 5 Might not be anything that will grade VB5 to C#, then again I might be wrong..lol
jmcilhinney
Feb 4th, 2006, 07:11 AM
Ah, I didn't read your post carefully enough. There's virtually no chance of finding something that will convert even VB6 code to C#. You can convert VB.NET to C# and back because they both use the .NET Framework class library. You can upgrade VB6 code to VB.NET because Microsoft have specifically included an entire namespace of classes designed to make VB6 code upgradable to VB.NET. That namespace could be referenced in C# project but to do so would be an abomination. Most VB developers that I've conversed with recommend rewriting by hand even when upgrading code from VB6 to VB.NET. There's not too much code there though so the upgrade wizard should be able to handle it OK.
conipto
Feb 4th, 2006, 08:27 AM
I haven't looked into this deeply, since I'm only using express versions of 2005, but it looks kind of cool..
Paste As VB.NET (http://msdn.microsoft.com/msdnmag/issues/06/02/PasteAs/default.aspx) (for the other way around)
Bill
{FPP}
Feb 4th, 2006, 09:52 AM
Yea, I didnt find anything that would help me. I dont no much VB (actually any,but i think i can pick up some), but does any one one to take a whirl of porting it with me?
Oh, nad you said the upgrade wizard should be able to handle it ok...what/where is the upgrade wizard?
-FPP-
RobDog888
Feb 4th, 2006, 12:48 PM
The upgrade wizard is for converting vb6 code to vb.net only and is only about 95% accurate but like John posted with smaller apps there is more of a chance it will work. Once its converted to vb.net you can use the link posted to convert it from vb.net to c#.
{FPP}
Feb 4th, 2006, 02:01 PM
Ok, where is the upgrade wizard? Sorry...i have VS 2005.
RobDog888
Feb 4th, 2006, 02:28 PM
I have 2003 and havent installed my 2005 yet (doing later today) but I'm not sure if its included in 05. If it is it may be in the same place that it is in 2003?
Tools > Upgrade VB6 Code...
{FPP}
Feb 4th, 2006, 03:28 PM
No its not there, but thats ok, i have found osmthing better, its exactly what i wanted. Thanks.
-FPP
Rattlerr
Feb 4th, 2006, 08:16 PM
When you go too Open a Project in VS 2005 that is an Older Language It will Automatically ask " If you want too Convert it"...
dee-u
Feb 5th, 2006, 09:14 PM
SharpDevelop can also convert from C# to VB.Net and vice-versa...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.