Results 1 to 9 of 9

Thread: Vb6 -> C# 2005

  1. #1

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Vb6 -> C# 2005

    Is there a utility to do that? I thought I saw one once.
    ===================================================
    If your question has been answered, mark the thread as [RESOLVED]

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Vb6 -> C# 2005

    I haven't even seen a utility that converts VB6 to VB.NET code that actually works. If there is such as thing as your title utility, I'd love to take a look at it.

  3. #3
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Vb6 -> C# 2005

    David Anton has lots of converters, dont know if he has one for VB6-C# though...I dont really think so. One should convert manually for the best end result.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  4. #4

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: Vb6 -> C# 2005

    That's kinda what I thought. I can almost rember seeing something, though.
    ===================================================
    If your question has been answered, mark the thread as [RESOLVED]

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

    Re: Vb6 -> C# 2005

    Nope, no VB 6 to .NET converters as Microsoft cant even get it working correctly then no one can
    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

  6. #6
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    710

    Re: Vb6 -> C# 2005

    VB6 to C# is a bit of a chore, I'm afraid.
    I'd recommend first upgrading to VB.NET and then use one of the available VB.NET to C# converters (such as ours).

    There are a couple of converters that claim to convert directly from VB6 to C#, but I don't have experience with them:
    http://www.vbto.net/
    http://www.netcoole.com/vb6tocs.htm
    David Anton
    Convert between VB, C#, C++, & Java
    www.tangiblesoftwaresolutions.com

  7. #7
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502

    Re: Vb6 -> C# 2005

    Hmm, I believe VS2003 contained such a converter, didn't it?
    (for VB6 -> VB.NET)
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  8. #8
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    710

    Re: Vb6 -> C# 2005

    Quote Originally Posted by BramVandenbon
    Hmm, I believe VS2003 contained such a converter, didn't it?
    (for VB6 -> VB.NET)
    Yes - so does VS 2005. That's our recommended way to go from VB6 to VB.NET. That does half the job of converting to C#, but it's not easy - according to our customers, the upgrade from VB6 to VB.NET is much tougher than the conversion of VB.NET to C#, even with the VB6 to VB.NET upgrade wizard.
    David Anton
    Convert between VB, C#, C++, & Java
    www.tangiblesoftwaresolutions.com

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

    Re: Vb6 -> C# 2005

    Yes, they have converters built in but they are crap and almost never complete the conversion of vB 6 code. Plus its usually not the best logic in code either. Its almost always recommended to re-write your vb 6 code in pure .net
    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

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