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. How to detect what version of OS

How to detect what version of OS

Scheduled Pinned Locked Moved Visual Basic
csharptutorialquestionannouncement
5 Posts 3 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.
  • C Offline
    C Offline
    ctlqt12
    wrote on last edited by
    #1

    Hi all, How could i know Window is English version or Japanese version or Chinese version through vb.net code?

    D G 2 Replies Last reply
    0
    • C ctlqt12

      Hi all, How could i know Window is English version or Japanese version or Chinese version through vb.net code?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You can look at the current culture of the UI using:

      Imports System.Globalization
      .
      .
      .
      Console.WriteLine("Current UI Culture: " & CultureInfo.CurrentUICulture.Name)

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • C ctlqt12

        Hi all, How could i know Window is English version or Japanese version or Chinese version through vb.net code?

        G Offline
        G Offline
        GuyThiebaut
        wrote on last edited by
        #3

        Hi, I had a bit of a trawl through MSDN for this and I think this is what you want. Click Here The part you probably want to look at is... "Use the LanguageDesignation property to return a three-letter abbreviation for the language used for the operating system. The following statement returns "enu" as the language designation abbreviation for the English (US) language. currSystemLanguage = System.LanguageDesignation" Let me know if this is of any use. Regards Guy;)

        You always pass failure on the way to success.

        D 1 Reply Last reply
        0
        • G GuyThiebaut

          Hi, I had a bit of a trawl through MSDN for this and I think this is what you want. Click Here The part you probably want to look at is... "Use the LanguageDesignation property to return a three-letter abbreviation for the language used for the operating system. The following statement returns "enu" as the language designation abbreviation for the English (US) language. currSystemLanguage = System.LanguageDesignation" Let me know if this is of any use. Regards Guy;)

          You always pass failure on the way to success.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          That's not part of the .NET Framework. That's a FrontPage library.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          G 1 Reply Last reply
          0
          • D Dave Kreskowiak

            That's not part of the .NET Framework. That's a FrontPage library.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            G Offline
            G Offline
            GuyThiebaut
            wrote on last edited by
            #5

            oops - sorry:sigh:

            You always pass failure on the way to success.

            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