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/C# Tips/Tricks

VB/C# Tips/Tricks

Scheduled Pinned Locked Moved The Lounge
csharphtmlquestionannouncement
27 Posts 10 Posters 0 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.
  • V Vic Rauch

    I looked at your example article and really liked the way you showed both C# and VB, plus allowing the reader to collapse either the C# or VB code is a GREAT idea. I'm new to VB.net and have never used any language like C#, so reading something where all the code is only in C# I have found does not help me at all. Your approach works very well. Thank you for presenting it here.

    L Offline
    L Offline
    Luc Pattyn
    wrote on last edited by
    #21

    :rose:

    Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

    Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

    1 Reply Last reply
    0
    • A AspDotNetDev

      Just curious how you all handle writing tips/tricks that apply to both C# and VB.NET. I typically just include the code for both inline, though I'm thinking of writing them in C# and including the VB.NET version as an alternate if they are heavy on code. What approach do you take?

      [WikiLeaks Cablegate Cables]

      D Offline
      D Offline
      Doug Ivison
      wrote on last edited by
      #22

      Speaking as a user/recipient, not a poster: here's another vote for posting both C# and VB.NET. (If you posted the Java, too, I'd read it out of curiosity... never done Java (don't drink coffee, either ;) and that would be an easy / interesting way to be introduced to some.) Thanks, -- Doug

      1 Reply Last reply
      0
      • G Gregory Gadow

        You asked for my opinion, so here it goes and damn the univoters :~ If you want to write your bit in just C#, great, but please do not flag it as VB. Even if "the technique works in both languages", sample code in C# is not very helpful to someone who is not familiar with it: you may as well write your code in Fortran, COBOL or 6510 Assembly. If something is flagged for both C# and VB, it is reasonable to expect that the article will be useful to someone who uses only one of those languages. If that is not the case, then only one of those tags should be used.

        J Offline
        J Offline
        jsc42
        wrote on last edited by
        #23

        Yes please ... More FORTRAN code!

        G 1 Reply Last reply
        0
        • J jsc42

          Yes please ... More FORTRAN code!

          G Offline
          G Offline
          Gregory Gadow
          wrote on last edited by
          #24

          Can we have an RPG forum? :laugh:

          1 Reply Last reply
          0
          • L Luc Pattyn

            I expect an alternate to be creative, i.e. to offer another concept, another view on things, and not the same idea implemented in a different language. If you consider different languages alternates, then most every T&T could get alternates added to it, to do the same thing in different languages (C#, C++, VB, Java, PHP, Perl, etc.) and real alternates would be hard to find. :)

            Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

            Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

            K Offline
            K Offline
            Keith Badeau
            wrote on last edited by
            #25

            I see that already or the "alternate" is a link to someone else' work. Are there guidelines or rules of thumb posted here?

            L 1 Reply Last reply
            0
            • K Keith Badeau

              I see that already or the "alternate" is a link to someone else' work. Are there guidelines or rules of thumb posted here?

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #26

              Most FAQs can be reached through the "Help!" menu. Code Project Tips & Tricks FAQ[^] may be of interest to you. :)

              Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

              Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

              K 1 Reply Last reply
              0
              • L Luc Pattyn

                Most FAQs can be reached through the "Help!" menu. Code Project Tips & Tricks FAQ[^] may be of interest to you. :)

                Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                K Offline
                K Offline
                Keith Badeau
                wrote on last edited by
                #27

                Thank you sir, much appreciated.

                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