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. The Lounge
  3. VB.NET v C#

VB.NET v C#

Scheduled Pinned Locked Moved The Lounge
csharpdotnetquestion
38 Posts 20 Posters 4 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.
  • A Andy H

    Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

    M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #6

    C# supports embedded XML to comment your code, which then can generate on-line reference documentation using FREE tools. VB.NET does not. Is that a good enough reason? Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
    Help! I'm an AI running around in someone's f*cked up universe simulator.

    M 1 Reply Last reply
    0
    • M Megan Forbes

      Chris Maunder wrote: VB programmers who complained loudly and in a whiny, nasally voice :laugh:


      I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #7

      Like Muslims. (see sig) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
      Help! I'm an AI running around in someone's f*cked up universe simulator.

      C M 2 Replies Last reply
      0
      • M Marc Clifton

        C# supports embedded XML to comment your code, which then can generate on-line reference documentation using FREE tools. VB.NET does not. Is that a good enough reason? Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
        Help! I'm an AI running around in someone's f*cked up universe simulator.

        M Offline
        M Offline
        Michael P Butler
        wrote on last edited by
        #8

        Marc Clifton wrote: C# supports embedded XML to comment your code, Since when did VB programmer start commenting their code. Isn't their motto, it was easy to write so it must be easy to understand :-D Michael Life’s not a song. Life isn’t bliss. Life is just this. It’s living. -- Buffy the Vampire Slayer: Once more, with feeling

        R 1 Reply Last reply
        0
        • A Andy H

          Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

          S Offline
          S Offline
          Stephane Rodriguez
          wrote on last edited by
          #9

          Beware of redistribution issues with VB.NET apps, especially those made from upgraded legacy VB code. I have heard of interop assemblies to be installed by hand.(in addition to the .NET virtual machine, which was in theory the common run-time for both VB.NET and C#).


          Back to real work : D-16.

          D 1 Reply Last reply
          0
          • M Marc Clifton

            Like Muslims. (see sig) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
            Help! I'm an AI running around in someone's f*cked up universe simulator.

            C Offline
            C Offline
            Chris Maunder
            wrote on last edited by
            #10

            Let's not have religious wars here. Please? cheers, Chris Maunder

            M 1 Reply Last reply
            0
            • M Michael P Butler

              Marc Clifton wrote: C# supports embedded XML to comment your code, Since when did VB programmer start commenting their code. Isn't their motto, it was easy to write so it must be easy to understand :-D Michael Life’s not a song. Life isn’t bliss. Life is just this. It’s living. -- Buffy the Vampire Slayer: Once more, with feeling

              R Offline
              R Offline
              Ryan Johnston 0
              wrote on last edited by
              #11

              I'm tired of this. Since when did some one who spews VB become a programmer? Looking at VB "code" is like seeing someone throw up all over my screen. Ryan Johnston

              M 1 Reply Last reply
              0
              • A Andy H

                Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

                D Offline
                D Offline
                David Wulff
                wrote on last edited by
                #12

                Andy H wrote: whereas I prefer languages which use the semi-colon. That sounds so dirty. :-O I have nothing useful to input, as usual.


                David Wulff http://www.davidwulff.co.uk

                "Life, as well as software, has bugs." - Roger Wright

                B 1 Reply Last reply
                0
                • S Stephane Rodriguez

                  Beware of redistribution issues with VB.NET apps, especially those made from upgraded legacy VB code. I have heard of interop assemblies to be installed by hand.(in addition to the .NET virtual machine, which was in theory the common run-time for both VB.NET and C#).


                  Back to real work : D-16.

                  D Offline
                  D Offline
                  Daniel Turini
                  wrote on last edited by
                  #13

                  If you have a COM DLL that calls a interop COM DLL: on C#, the IDE can handle this with a property (IIRC, "Wrapper Assembly Key File"). On VB.NET, you need to manually call tlbimp.exe. The problem is, sometimes tlbimp.exe does not recognizes a importlib("msadoxx.tlb") to ADO (don't ask me why) and generates an extraneous ADODB.DLL, intead of using the PIA. This causes the behaviour you mentioned. I had to do my own tlbImp to handle this. C# does this correctly, but we still have legacy VB code. My latest article: SQL Server DO's and DONT's[^]

                  1 Reply Last reply
                  0
                  • D David Wulff

                    Andy H wrote: whereas I prefer languages which use the semi-colon. That sounds so dirty. :-O I have nothing useful to input, as usual.


                    David Wulff http://www.davidwulff.co.uk

                    "Life, as well as software, has bugs." - Roger Wright

                    B Offline
                    B Offline
                    Brian Delahunty
                    wrote on last edited by
                    #14

                    David Wulff wrote: That sounds so dirty Only you could make that sound dirty Dave!!! ;P Regards, Brian Dela :-)

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      Let's not have religious wars here. Please? cheers, Chris Maunder

                      M Offline
                      M Offline
                      Marc Clifton
                      wrote on last edited by
                      #15

                      Let's not have religious wars here. Please? Yes sir. Sorry! (Hmmm. No smiley face. I'm in troooubbbbbllllllle!) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                      Help! I'm an AI running around in someone's f*cked up universe simulator.

                      B C 2 Replies Last reply
                      0
                      • R Ryan Johnston 0

                        I'm tired of this. Since when did some one who spews VB become a programmer? Looking at VB "code" is like seeing someone throw up all over my screen. Ryan Johnston

                        M Offline
                        M Offline
                        Marc Clifton
                        wrote on last edited by
                        #16

                        How do you do that cool red-to-black affect?!?!? (I don't have the time to look at the HTML code right now--maybe later!) Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                        Help! I'm an AI running around in someone's f*cked up universe simulator.

                        P 1 Reply Last reply
                        0
                        • M Marc Clifton

                          Let's not have religious wars here. Please? Yes sir. Sorry! (Hmmm. No smiley face. I'm in troooubbbbbllllllle!) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                          Help! I'm an AI running around in someone's f*cked up universe simulator.

                          B Offline
                          B Offline
                          Brian Delahunty
                          wrote on last edited by
                          #17

                          Marc Clifton wrote: (Hmmm. No smiley face. I'm in troooubbbbbllllllle!) Nah.. just that that sort of stuff in the lounge is a major no, no. Personally I think it's a major no, no on CP itself but the soapbox can turn up some weird stuff. Regards, Brian Dela :-)

                          1 Reply Last reply
                          0
                          • M Marc Clifton

                            Like Muslims. (see sig) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                            Help! I'm an AI running around in someone's f*cked up universe simulator.

                            M Offline
                            M Offline
                            Megan Forbes
                            wrote on last edited by
                            #18

                            Marc Clifton wrote: Help! I'm an AI running around in someone's f*cked up universe simulator This one still rocks! :-D


                            I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages

                            B 1 Reply Last reply
                            0
                            • M Madhu _Cheriyedath

                              I too agreed that VB.NET is a little messy..But sometimes people who never programmed in C family of languages (C++, Java etc) prefer to use the old VB style. Though VB.NET is not the old VB, some people prefer that. I personally prefer C# over VB.NET.. The only advantage I can see with VB.NET is better intellisense support in Visual Studio.NET. That also not very much...On the other hand C# gives more cleaner syntax...does not carry any baggage from old language(as in the case of VB.NET) Madhu.

                              P Offline
                              P Offline
                              Paul Watson
                              wrote on last edited by
                              #19

                              Madhu _Cheriyedath wrote: The only advantage I can see with VB.NET is better intellisense support in Visual Studio.NET VB.NET has better intellisense than C#? How so?

                              Paul Watson
                              Bluegrass
                              Cape Town, South Africa

                              Colin Davies wrote: ...can you imagine a John Simmons stalker !

                              D 1 Reply Last reply
                              0
                              • M Marc Clifton

                                How do you do that cool red-to-black affect?!?!? (I don't have the time to look at the HTML code right now--maybe later!) Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                                Help! I'm an AI running around in someone's f*cked up universe simulator.

                                P Offline
                                P Offline
                                Paul Watson
                                wrote on last edited by
                                #20

                                Marc Clifton wrote: How do you do that cool red-to-black affect?!?!? He used VB... ;P Actually here is the code to do it, looks like something a VB programmer would produce:

                                <font color='#FF0000'>R</font>
                                <font color='#EE0000'>y</font>
                                <font color='#DD0000'>a</font>
                                <font color='#CC0000'>n</font>
                                <font color='#BB0000'>J</font>
                                <font color='#AA0000'>o</font>
                                <font color='#990000'>h</font>
                                <font color='#880000'>n</font>
                                <font color='#770000'>s</font>
                                <font color='#660000'>t</font>
                                <font color='#550000'>o</font>
                                <font color='#440000'>n</font>

                                * Relax Ryan! You ripped off VB programmers and opened yourself up, so am just poking fun at you :-D

                                Paul Watson
                                Bluegrass
                                Cape Town, South Africa

                                Colin Davies wrote: ...can you imagine a John Simmons stalker !

                                R 1 Reply Last reply
                                0
                                • M Megan Forbes

                                  Marc Clifton wrote: Help! I'm an AI running around in someone's f*cked up universe simulator This one still rocks! :-D


                                  I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages

                                  B Offline
                                  B Offline
                                  Brian Delahunty
                                  wrote on last edited by
                                  #21

                                  Megan Forbes wrote: This one still rocks! It's always been good Megan Forbes wrote: I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages ROTFLMAO.. Brilliant. I missed that post!!! :laugh: Regards, Brian Dela :-)

                                  M 1 Reply Last reply
                                  0
                                  • P Paul Watson

                                    Madhu _Cheriyedath wrote: The only advantage I can see with VB.NET is better intellisense support in Visual Studio.NET VB.NET has better intellisense than C#? How so?

                                    Paul Watson
                                    Bluegrass
                                    Cape Town, South Africa

                                    Colin Davies wrote: ...can you imagine a John Simmons stalker !

                                    D Offline
                                    D Offline
                                    David Stone
                                    wrote on last edited by
                                    #22

                                    Paul Watson wrote: How so? It's actually more annoying. If you write a line that the compiler doesn't think is correct, it underlines it with the blue squiggly...while you're coding. I think it's better to have it build first and then it shows you your mistakes (not that it ever shows me any...I never make errors:-D).


                                    You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks -Shog9 teaching Mel Feik how to bookmark I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past. -Chris Maunder

                                    L 1 Reply Last reply
                                    0
                                    • A Andy H

                                      Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers

                                      C Offline
                                      C Offline
                                      Chris Hansson
                                      wrote on last edited by
                                      #23

                                      Well I tend to point out (and irritate) Visual BASIC code monkey by pointing out what BASIC stands for. I.e Beginners All Symbolic Instruction Code. (and no, diplomacy is not my strong point... :-D )

                                      N 1 Reply Last reply
                                      0
                                      • P Paul Watson

                                        Marc Clifton wrote: How do you do that cool red-to-black affect?!?!? He used VB... ;P Actually here is the code to do it, looks like something a VB programmer would produce:

                                        <font color='#FF0000'>R</font>
                                        <font color='#EE0000'>y</font>
                                        <font color='#DD0000'>a</font>
                                        <font color='#CC0000'>n</font>
                                        <font color='#BB0000'>J</font>
                                        <font color='#AA0000'>o</font>
                                        <font color='#990000'>h</font>
                                        <font color='#880000'>n</font>
                                        <font color='#770000'>s</font>
                                        <font color='#660000'>t</font>
                                        <font color='#550000'>o</font>
                                        <font color='#440000'>n</font>

                                        * Relax Ryan! You ripped off VB programmers and opened yourself up, so am just poking fun at you :-D

                                        Paul Watson
                                        Bluegrass
                                        Cape Town, South Africa

                                        Colin Davies wrote: ...can you imagine a John Simmons stalker !

                                        R Offline
                                        R Offline
                                        Ryan Johnston 0
                                        wrote on last edited by
                                        #24

                                        Paul Watson wrote: Relax Ryan! You ripped off VB programmers and opened yourself up, so am just poking fun at you No problem Paul. I don't really hate VB programmers, but I do hate VB. I am currently taking a software engineering class where I am being forced to use VB, so I am just angry at the world right now. Ryan Johnston

                                        C J 2 Replies Last reply
                                        0
                                        • M Marc Clifton

                                          Let's not have religious wars here. Please? Yes sir. Sorry! (Hmmm. No smiley face. I'm in troooubbbbbllllllle!) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
                                          Help! I'm an AI running around in someone's f*cked up universe simulator.

                                          C Offline
                                          C Offline
                                          Chris Maunder
                                          wrote on last edited by
                                          #25

                                          ;)

                                          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