Culture Settings in Windows Forms MaskedTextBox (MaskedEditBox)

4 Feb 20251 minute to read

This section discusses the culture settings of the MaskedEditBox control.

MaskedEditBox Properties Description
Culture Gets / sets the culture that is to be used for formatting the numeric display.
SpecialCultureValue Gets / sets the mode for the cultures.It includes the below given options:

None,

CurrentCulture,

UICulture and

InstalledCulture.

UseUserOverride Specifies if the NumberFormatInfo used for formatting will use the User Overrides for the culture. The default value is set to 'True'.
this.maskedEditBox1.Culture = new System.Globalization.CultureInfo("ar-SA");
this.maskedEditBox1.SpecialCultureValue = Syncfusion.Windows.Forms.Tools.SpecialCultureValues.None;
this.maskedEditBox1.UseUserOverride = true;
Me.maskedEditBox1.Culture = New System.Globalization.CultureInfo("ar-SA")
Me.maskedEditBox1.SpecialCultureValue = Syncfusion.Windows.Forms.Tools.SpecialCultureValues.None
Me.maskedEditBox1.UseUserOverride = True

Culture settings in Windows Forms MaskedTextBox