Home All Groups Group Topic Archive Search About

how to obtain regional settings

Author
16 Aug 2006 2:06 AM
Emby
Is there a way in the .NET framework to determine Windows Regional Settings?
Items like Dimensions (CM or Inches), decimal symbol, digit grouping symbol,
time formats, date formats, etc.

I've done some digging, but come up empty.

Thanks

Author
16 Aug 2006 4:03 AM
Emby
OK, I found it in System.Globalizaion (duh!):
  NumberFormatInfo.NumberDecimalSeparator, for the decimal symbol
  NumberFormatInfo.NumberGroupSeparator, for the digit grouping symbol
  RegionInfo.IsMetric, for CM (metric) versus Inches

Cheers

Show quote
"Emby" <e***@blaisesoft-xxx.com> wrote in message
news:ecPzmiNwGHA.5024@TK2MSFTNGP04.phx.gbl...
> Is there a way in the .NET framework to determine Windows Regional
> Settings? Items like Dimensions (CM or Inches), decimal symbol, digit
> grouping symbol, time formats, date formats, etc.
>
> I've done some digging, but come up empty.
>
> Thanks
>

AddThis Social Bookmark Button