Results 1 to 5 of 5

Thread: [RESOLVED] Microsoft.VisualBasic.Compatibility.VB6

  1. #1

    Thread Starter
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Resolved [RESOLVED] Microsoft.VisualBasic.Compatibility.VB6

    http://msdn2.microsoft.com/en-us/lib...ility.vb6.aspx

    I'm confused. This looks like something new since it says "Specific to .NET Framework 3.0" and there are no descriptions, but then I found some really old posts on forums that mentioned this.

    I usually get all my answers from MSDN, but it doesn't say anything about this namespace.

    1) Are the functions old VB6 functions?
    2a) I don't imagine that it'll be recommended to use anything in this namespace. I'd probably get the "That is legacy. Do it .NET and use this" response. So, what is the purpose of this namespace and why now?
    2b) Does this have something to do with conversion?

    Somebody set me straight.

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

    Re: Microsoft.VisualBasic.Compatibility.VB6

    That namespace exists specifically to support upgraded VB6 code. It contains classes that the conversion wizard can use to make converted code work when an implementation in "proper" VB.NET would simply be too complex to determine. Don't ever use that namespace.
    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
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Microsoft.VisualBasic.Compatibility.VB6

    I just looked it over. It doesn't contain vb6 functions. It contains ways to do stuff in vb.net that you currently can't do easily, and it is band-aid stuff for upgrading from vb-6. about 90% of it is control arrays, and access to the older controls. It also contains a twips converter, so you wouldn't have to do a major code conversion on a program that uses them.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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

    Re: Microsoft.VisualBasic.Compatibility.VB6

    You would never want to really use the vb 6 code converter for anything IMO. I believe John is talking about the Microsoft.VisualBasic class as it contains the VB 6 style functions. Either way, they are just completely
    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

  5. #5

    Thread Starter
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: Microsoft.VisualBasic.Compatibility.VB6

    Great. Thanks for the responses.

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