VB6.0 vs

Posted on 2005-04-12
Last Modified: 2011-10-03
What are the differences and simalarities between vb 6.0 and Also if i was to migrate from vb6.0 to what advantages would i get and the difficulties(I know i would have to learn new comannads in asi only use vb 6.0 but i mean advantages the software ect woyuld give me).
Question by:fishmanfishman

    Author Comment

    i can raisethe points if you feel it is a big question to answer!
    LVL 4

    Accepted Solution

    There are SUPREME Advantages of VB.NET, i dont know where to start so you'll just have to take the word of about 1,000 or so people on here.  There are alota things that are much better, for one is the Interop Services, and the fact that commands are alot easier to remember and compiling is easier and... *benifit overload*... Its just alot easier to program, 5 Lines VB.NET = 40 Lines VB6

    LVL 44

    Assisted Solution


    1) the basic Language syntax is almost the same.

    2) The IDE is very similar, though there are some significant differences.


    1) .NET is 100% Object Oriented, and everything (Yes, EVERYTHING) in .NET is an Object.  The maning of this is that the .NET programming paradigm (the basic underlying principles) is very much different from Visual Basic 6.0.  So much so, that you should NOT attempt to 'upgrade' any existing Visual Basic 6.0 program to .NET.

    2) ADO.NET is much more than simply an upgrade to ADO.

    3) Database access is greatly improved, and database connections can be managed directly from the IDE (if you are using SQL Server)

    LVL 25

    Assisted Solution

    Having programmed in VB6 for along time, I have switched to .Net A year ago. And VB.NET is far superior to VB6.

    To mention a few,

    VB.NET is totally OO (inheritence polymorfism encapsulation), Meaning it is much easier to reuse your code and to build powerfull applications) (Inheritence rules !!!).
    It is much easier to create windows services/ web apps/ console applications/ usercontrols)
    as mentioned by darkpriest, less code is often needed in .NET than in VB6. the .net framework incorporates a lot of predifined stuff that you had to code in VB6 yourself.
    Things like filewatchers (a class that will let you monitor files/directories)

    some pitfalls doesn't resemble the old ADO at all, there are no recondsets anymore and it is a disconnected model, This took me the most time to get used to (but you will eventually :))
    The datagrid although it is fully customizable it takes a lot more code than it used to (my advice, buy a datagrid from componentone or infragistics)
    There are no control arrays anymore (you have to build them yourself)

    If you need more specific info, just ask
    LVL 96

    Assisted Solution

    by:Bob Learned
    After stepping through the door into the magical world of VB.NET, you will be blinded by the wild array of new things, and you will be totally disoriented for a while.  Many of those things that you could do in your sleep in VB6 have changed, and you will have to start on a learning curve to do somethings differently.  At first, most old VB6 developers resist, and think about migration.  While this sounds enticing, after a while, you will get disgruntled over the mess that the migration tools make out of it.  Then, if you are smart, you will leave your old habits and knowledge behind you, and move ahead into the full-featured .NET Framework, and learn it's magic and also it's strange behaviors.

    As pointed out so eloquently by Ronald, ADO.NET is a major player in a lot of software development, and has gone through an extreme make-over.  Some impressions are that it is good, and others are that it is 10 times easier to do in VB6.  My impression is that it is just different--not better, not worse--just different.

    I have tried to make it a point to learn such new concepts as WMI, ActiveDirectory, Regular Expressions, and GDI+, since they are integral to my work, and the tools in .NET are pretty awesome.  Although, I think that GDI+ needs to grow a little more, as it still feels like it is still in its infancy.


    Assisted Solution

    I know not as indepth as other answers but as someone who once made the move over 12 months ago.

    VB .Net has a faster and easier workflow.
    VB .Net shares alot of common ground with C# and others because of .NET making it easier to jump between language and still get the application running.

    If you move directly across do not expect everything to work, infact assume the worst and create a new project. I found this the simplest solution. Then simply start to migrate in small parts of your project fixing what you need. You will run into some systax errors, and certainly alot of database problems. There are also alot more features visually and techincally available to you, so once you have everything in and working (some effort required) consider if you need any new or upgraded features.

    VB .NET allows you to easily create ASP .NET applications once you get to grips with some basic concepts. The biggest headache you will have are the your old thinkings. Try and forget them as it will lead to bad programming within .NET. simply consider this as a complete port to a new language and essentially a new platform and all should be good. After that all I can say is best of luck.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    sum28 challenge 31 82
    Simple (?) problem getting Rainbow Folders to run 6 73
    fix34  challenge 9 73
    Excel object stays open 19 56
    I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
    A short article about a problem I had getting the GPS LocationListener working.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now