Getting the computer's location using the Regional Settings.
-
-
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
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:
-
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
You can use
RegionInfo.CurrentRegion.DisplayName
. Don't forget to reference namespaceSystem.Globalization
.Regards:rose: