We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SpecialCultureValue property purpose

Thread ID:

Created:

Updated:

Platform:

Replies:

141578 Dec 18,2018 08:54 PM UTC Dec 19,2018 06:38 AM UTC WinForms 1
loading
Tags: DoubleTextBox
Pierre-Alain GALTIER
Asked On December 18, 2018 08:54 PM UTC

Hi,
I wonder what is the purpose of the SpecialCultureValue property of a DoubleTextBox control and how to use it ?

Thank you.


Kannan R [Syncfusion]
Replied On December 19, 2018 06:38 AM UTC

Hi Pierre, 
 
Thank you for contacting Syncfusion Support.  
 
The property SpecialCultureValue helps to sets the mode for the cultures in DoubleTextBox. It includes options like None, CurrentCulture, UICulture and InstalledCulture. Please refer with below code snippets for your reference 
 
Code Snippet : [C#] 
 
 
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) 
        { 
            string selected = this.comboBox1.SelectedItem.ToString(); 
 
            if (selected.ToString() == "Default") 
            { 
                this.doubleTextBox1.SpecialCultureValue = SpecialCultureValues.CurrentCulture; 
                this.doubleTextBox1.Culture = new CultureInfo(CultureInfo.CurrentCulture.LCID, this.doubleTextBox1.UseUserOverride); 
            } 
            else if (selected.ToString() == "UICulture") 
            { 
                this.doubleTextBox1.SpecialCultureValue = SpecialCultureValues.UICulture; 
                this.doubleTextBox1.Culture = new CultureInfo(CultureInfo.CurrentUICulture.LCID, this.doubleTextBox1.UseUserOverride); 
            } 
            else if (selected.ToString() == "InstalledUICulture") 
            { 
                this.doubleTextBox1.SpecialCultureValue = SpecialCultureValues.InstalledCulture; 
                this.doubleTextBox1.Culture = new CultureInfo(CultureInfo.InstalledUICulture.LCID, this.doubleTextBox1.UseUserOverride); 
            } 
            else 
            { 
                this.doubleTextBox1.SpecialCultureValue = SpecialCultureValues.None; 
                this.doubleTextBox1.Culture = new CultureInfo(selected, this.doubleTextBox1.UseUserOverride); 
            } 
        } 
 
 
We have prepared sample for your reference and it can be downloaded from the below location. 
 
 
Regards, 
Kannan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;