|
-
Feb 4th, 2006, 12:28 AM
#1
Thread Starter
Lively Member
[RESOLVED] VB -> C#
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/art...75499&seqNum=2
Any help in doing so would be great
Thanks
-FPP
-
Feb 4th, 2006, 02:50 AM
#2
Re: VB -> C#
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.
-
Feb 4th, 2006, 02:53 AM
#3
Hyperactive Member
Re: VB -> C#
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
-
Feb 4th, 2006, 08:11 AM
#4
Re: VB -> C#
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.
-
Feb 4th, 2006, 09:27 AM
#5
Re: VB -> C#
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 (for the other way around)
Bill
-
Feb 4th, 2006, 10:52 AM
#6
Thread Starter
Lively Member
Re: VB -> C#
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-
-
Feb 4th, 2006, 01:48 PM
#7
Re: VB -> C#
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#.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 4th, 2006, 03:01 PM
#8
Thread Starter
Lively Member
Re: VB -> C#
Ok, where is the upgrade wizard? Sorry...i have VS 2005.
-
Feb 4th, 2006, 03:28 PM
#9
Re: VB -> C#
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...
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 4th, 2006, 04:28 PM
#10
Thread Starter
Lively Member
Re: VB -> C#
No its not there, but thats ok, i have found osmthing better, its exactly what i wanted. Thanks.
-FPP
Last edited by {FPP}; Feb 4th, 2006 at 05:53 PM.
-
Feb 4th, 2006, 09:16 PM
#11
Hyperactive Member
Re: VB -> C#
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"...
-
Feb 5th, 2006, 10:14 PM
#12
Re: [RESOLVED] VB -> C#
SharpDevelop can also convert from C# to VB.Net and vice-versa...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|