//If the FormatMode is Numeric
this.NumericTextBox.FormatMode = Syncfusion.WinForms.Input.Enums.FormatMode.Numeric;
this.NumericTextBox.NumberFormatInfo = new System.Globalization.NumberFormatInfo() { NumberDecimalDigits = 4 };
// If the FormatMode is Currency
this.CurrencyNumericTextBox.FormatMode = Syncfusion.WinForms.Input.Enums.FormatMode.Currency;
this. CurrencyNumericTextBox.NumberFormatInfo = new System.Globalization.NumberFormatInfo() { CurrencyDecimalDigits = 4 };
// If the FormatMode is Percent
this.PercentNumericTextBox.FormatMode = Syncfusion.WinForms.Input.Enums.FormatMode.Percent;
this. PercentNumericTextBox.NumberFormatInfo = new System.Globalization.NumberFormatInfo() { PercentDecimalSeparator = 4 }; |
'If the FormatMode is Numeric
Me.NumericTextBox.FormatMode = Syncfusion.WinForms.Input.Enums.FormatMode.Numeric
Me.NumericTextBox.NumberFormatInfo = New System.Globalization.NumberFormatInfo() With {.NumberDecimalDigits = 4}
' If the FormatMode is Currency
Me.CurrencyNumericTextBox.FormatMode = Syncfusion.WinForms.Input.Enums.FormatMode.Currency
Me.CurrencyNumericTextBox.NumberFormatInfo = New System.Globalization.NumberFormatInfo() With {.CurrencyDecimalDigits = 4}
' If the FormatMode is Percent
Me.PercentNumericTextBox.FormatMode = Syncfusion.WinForms.Input.Enums.FormatMode.Percent
Me.PercentNumericTextBox.NumberFormatInfo = New System.Globalization.NumberFormatInfo() With {.PercentDecimalSeparator = 4} |