Results 1 to 12 of 12

Thread: [RESOLVED] VB -> C#

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Resolved [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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Hyperactive Member Rattlerr's Avatar
    Join Date
    Jul 2005
    Location
    FloralCity,Florida
    Posts
    269

    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

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    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
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    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-

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Re: VB -> C#

    Ok, where is the upgrade wizard? Sorry...i have VS 2005.

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    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.

  11. #11
    Hyperactive Member Rattlerr's Avatar
    Join Date
    Jul 2005
    Location
    FloralCity,Florida
    Posts
    269

    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"...

  12. #12
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: [RESOLVED] VB -> C#

    SharpDevelop can also convert from C# to VB.Net and vice-versa...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width