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. C#
  4. Getting the computer's location using the Regional Settings.

Getting the computer's location using the Regional Settings.

Scheduled Pinned Locked Moved C#
tutorialquestion
3 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.
  • R Offline
    R Offline
    ranzask
    wrote on last edited by
    #1

    Hi all, i am not looking for something sophisticated but just to read the "Location" field that i insert in the computer's Regional Settings menus..(in Control Panel) any ideas how to get it? (i do not want to find out through the IP) Thnaks,

    R.Z

    A N 2 Replies Last reply
    0
    • R ranzask

      Hi all, i am not looking for something sophisticated but just to read the "Location" field that i insert in the computer's Regional Settings menus..(in Control Panel) any ideas how to get it? (i do not want to find out through the IP) Thnaks,

      R.Z

      A Offline
      A Offline
      Alper Camel
      wrote on last edited by
      #2

      Hi by using the following class System.Threading.Thread.CurrentThread.CurrentUICulture you can read the os globalization info, it is like en-US, tr-TR .. hope this helps you.:sigh:

      Music Resources

      1 Reply Last reply
      0
      • R ranzask

        Hi all, i am not looking for something sophisticated but just to read the "Location" field that i insert in the computer's Regional Settings menus..(in Control Panel) any ideas how to get it? (i do not want to find out through the IP) Thnaks,

        R.Z

        N Offline
        N Offline
        Nader Elshehabi
        wrote on last edited by
        #3

        You can use RegionInfo.CurrentRegion.DisplayName. Don't forget to reference namespace System.Globalization.

        Regards:rose:

        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