Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. vb6 & vb.net comparison

vb6 & vb.net comparison

Scheduled Pinned Locked Moved Visual Basic
csharpdesignquestion
14 Posts 11 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J jds1207

    Is there a big difference between vb6 and vb.net as far as coding and design?

    S Offline
    S Offline
    supercat9
    wrote on last edited by
    #5

    VB6 is a muddled mess of a language which is saddled with oodles of quirks which were designed to make it somewhat compatible with QuickBasic and QBASIC, which were in turn designed to be compatible with the original IBM PC Cassette BASIC. Although it "looks" object-oriented, it lacks features like inheritance which are necessary to make real object-oriented programming possible. Further, as a result of its Cassette BASIC roots, many object methods have strange and bizarre variations in syntax which cannot be mimicked with user-defined functions. For example, to draw a box on the printer,

    Printer.Line(10,10)-(20,20),0,BF

    The use of two coordinate pairs, separated by a dash, and the use of the literal characters "BF" (block fill) without any string delimiter, are both perfectly fine syntax in an interpreted language (like Cassette Basic). They're not really any harder to parse than would be "LINE 10,10,20,20,0,2" (the "3" being "BF") and they're easier to read, but syntax line that makes it impossible to create a function that behaves like the "Line" function.

    1 Reply Last reply
    0
    • J jds1207

      Is there a big difference between vb6 and vb.net as far as coding and design?

      S Offline
      S Offline
      sa_runner
      wrote on last edited by
      #6

      Take a look at this book. I have it and found it to be a pretty good resource for making the transition, if you haven't already. http://www.amazon.com/Book-Visual-Basic-2005-Developers/dp/1593270747/ref=sr_1_48?ie=UTF8&s=books&qid=1215014222&sr=8-48[^]

      1 Reply Last reply
      0
      • J jds1207

        Is there a big difference between vb6 and vb.net as far as coding and design?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #7

        The only similarities are that they both have "Visual Basic" in the title and the message box function is MsgBox() in both. :)

        G 1 Reply Last reply
        0
        • J jds1207

          Is there a big difference between vb6 and vb.net as far as coding and design?

          J Offline
          J Offline
          Jay Royall
          wrote on last edited by
          #8

          I think he gets the point!

          1 Reply Last reply
          0
          • L Lost User

            The only similarities are that they both have "Visual Basic" in the title and the message box function is MsgBox() in both. :)

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #9

            The JZ wrote:

            and the message box function is MsgBox() in both

            Actually, the message box method in .NET is MessageBox.Show. The MsgBox method in VB.NET is just a wrapper for the MessageBox.Show method. Also, it's far from the only VB 6 leftover. VB.NET has a lot of wrappers with the same name as the VB 6 functions, that call the corresponding .NET method.

            Despite everything, the person most likely to be fooling you next is yourself.

            L 1 Reply Last reply
            0
            • G Guffa

              The JZ wrote:

              and the message box function is MsgBox() in both

              Actually, the message box method in .NET is MessageBox.Show. The MsgBox method in VB.NET is just a wrapper for the MessageBox.Show method. Also, it's far from the only VB 6 leftover. VB.NET has a lot of wrappers with the same name as the VB 6 functions, that call the corresponding .NET method.

              Despite everything, the person most likely to be fooling you next is yourself.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #10

              Like Charlie Brown, all I can say is "Good Grief!"

              1 Reply Last reply
              0
              • J jds1207

                Is there a big difference between vb6 and vb.net as far as coding and design?

                V Offline
                V Offline
                Vimalsoft Pty Ltd
                wrote on last edited by
                #11

                hi jds1207 When i heard there was vb.net, i was in vb6, and i thought, no am happy here at vb6, and i was so Stuborn and never wanted to Listen when they told me about vb.net, One day i had a problem in my code and i post a thread in a forum and i wrote something like " i have problem inserting records in vb", well the person who answered me, thought i was using vb.net and he posted an example code of vb.net, am telling you it was Completely different and made sense than my vb6 code. Initialy i thought i was going to learn there and there and grasp the language, but i was lying to myself, i had to start learning the Language from Scratch , and till today i dont see vb6 come Closer to vb.net. The Syntex might look alike but they are Completely Different.

                Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                J 1 Reply Last reply
                0
                • V Vimalsoft Pty Ltd

                  hi jds1207 When i heard there was vb.net, i was in vb6, and i thought, no am happy here at vb6, and i was so Stuborn and never wanted to Listen when they told me about vb.net, One day i had a problem in my code and i post a thread in a forum and i wrote something like " i have problem inserting records in vb", well the person who answered me, thought i was using vb.net and he posted an example code of vb.net, am telling you it was Completely different and made sense than my vb6 code. Initialy i thought i was going to learn there and there and grasp the language, but i was lying to myself, i had to start learning the Language from Scratch , and till today i dont see vb6 come Closer to vb.net. The Syntex might look alike but they are Completely Different.

                  Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                  J Offline
                  J Offline
                  Jay Royall
                  wrote on last edited by
                  #12

                  Nevertheless, the transition from VB6 to VB.NET is easier than from being a non-programmer to VB6.

                  V 1 Reply Last reply
                  0
                  • J Jay Royall

                    Nevertheless, the transition from VB6 to VB.NET is easier than from being a non-programmer to VB6.

                    V Offline
                    V Offline
                    Vimalsoft Pty Ltd
                    wrote on last edited by
                    #13

                    you are Very Correct

                    Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                    1 Reply Last reply
                    0
                    • J jds1207

                      Is there a big difference between vb6 and vb.net as far as coding and design?

                      T Offline
                      T Offline
                      Thomas Stockwell
                      wrote on last edited by
                      #14

                      To start off their is no comparison :)

                      Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups