Measurement units

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
 
C

Chris Fulstow

Try this:

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

Jack Russell

Thanks

Chris said:
Try this:

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

Jack Russell

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top