Culture Settings in Windows Forms Integer TextBox (Integertextbox)

4 Feb 20251 minute to read

Users can set the culture of the integer text box control using the Culture, CurrentCultureRefresh, SpecialCultureValue, and UseUserOverride properties.

this.integerTextBox1.Culture = new System.Globalization.CultureInfo("ar-SA");
this.integerTextBox1.CurrentCultureRefresh = true;
this.integerTextBox1.SpecialCultureValue = Syncfusion.Windows.Forms.Tools.SpecialCultureValues.None;
this.integerTextBox1.UseUserOverride = true;
Me.integerTextBox1.Culture = New System.Globalization.CultureInfo("ar-SA")
Me.integerTextBox1.CurrentCultureRefresh = True
Me.integerTextBox1.SpecialCultureValue = Syncfusion.Windows.Forms.Tools.SpecialCultureValues.None
Me.integerTextBox1.UseUserOverride = True

Culture support

NOTE

 The RefreshCulture method can be used to refresh and reapply the culture specific settings.

A Sample which demonstrates the Culture Settings of the IntegerTextBox control is available in the below sample installation path.

…\System Drive:\Users\Username\AppData\Local\Syncfusion\EssentialStudio\Version Number\Windows\Tools.Windows\Samples\Editor Controls\Editor Controls\CS