E
Emmanuel
I want to know the decimal separator and the group separator character
that the user has set in Regional Settings in Control Panel.
I tryied to use System.Globalization.NumberFormatInfo.CurrentInfo like
that:
NumberFormatInfo numInfo =
System.Globalization.NumberFormatInfo.CurrentInfo;
string ds = numInfo.CurrencyDecimalSeparator;
string gs = numInfo.CurrencyGroupSeparator;
These properties do not contain the values that the user has selected
from the "Regional Settings" but the proper values for the current
language.
This means that if the user has selected: "English (United Kindom)"
from the "Regional Settings" and then has changed the values of
separators using the "Customize" button, the above code will return
the proper separators for "English (United Kindom)" and not the custom
ones.
How can I read the separators that the user has selected from regional
settings ?
Thanks
Emmanuel
that the user has set in Regional Settings in Control Panel.
I tryied to use System.Globalization.NumberFormatInfo.CurrentInfo like
that:
NumberFormatInfo numInfo =
System.Globalization.NumberFormatInfo.CurrentInfo;
string ds = numInfo.CurrencyDecimalSeparator;
string gs = numInfo.CurrencyGroupSeparator;
These properties do not contain the values that the user has selected
from the "Regional Settings" but the proper values for the current
language.
This means that if the user has selected: "English (United Kindom)"
from the "Regional Settings" and then has changed the values of
separators using the "Customize" button, the above code will return
the proper separators for "English (United Kindom)" and not the custom
ones.
How can I read the separators that the user has selected from regional
settings ?
Thanks
Emmanuel