Articles in this section
Category / Section

How to apply the CurrentUI Culture to the CurrencyEdit control?

1 min read

 

CurrencyEdit control supports localization, and so the currency format can be changed according to the Culture specified by the user.

The Textbox of the CurrencyEdit control has Culture and SpecialCultureValue properties to support different cultures.

C#

System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(“fr-FR”);

currencyEdit1.TextBox.SpecialCultureValue = SpecialCultureValues.UICulture;

currencyEdit1.TextBox.Culture = new System.Globalization.CultureInfo(“fr-FR”);

VB

System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo(“fr-FR”)

currencyEdit1.TextBox.SpecialCultureValue = SpecialCultureValues.UICulture

currencyEdit1.TextBox.Culture = New System.Globalization.CultureInfo(“fr-FR”)

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment