Measurement units

  • Thread starter Thread starter Jack Russell
  • Start date Start date
J

Jack Russell

How can I find out what the current measurement units (US or metric)
setting is (Control panel, regional settings, advanced).
I can get things like the decimal separator but cannot find this one

I am using vb.net 2003


Thanks

Jack Russell
 
Try this:

RegionInfo region = new
RegionInfo(Thread.CurrentThread.CurrentCulture.Name);
Console.WriteLine("IsMetric: " + region.IsMetric);
 
Thanks

Chris said:
Try this:

RegionInfo region = new
RegionInfo(Thread.CurrentThread.CurrentCulture.Name);
Console.WriteLine("IsMetric: " + region.IsMetric);
 
Problem is that only seems to show what the standard for a region is not
what they are currently set to. Any other ideas?

Jack
 
Back
Top