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

Does the CurrencyTextBox control support displaying negative values?

Platform: WinForms |
Control: CurrencyTextBox |
Published Date: April 30, 2011 |
Last Revised Date: July 10, 2014
Tags:

 

Yes, the CurrencyTextBox can display negative values. The format of the negative value depends on the property CurrencyNegativePattern.

This property can have one of the values in the following table. The symbol"$" CurrencySymbol, the symbol "-" is the NegativeSign,and n is a number.

ValueAssociated Pattern0($n)1-$n2$-n3$n-4(n$)5-n$6n-$7n$-8-n $9-$ n10n $-11$ n-12$ -n13n- $14($ n)15(n $) These values are the same as the values for NumberFormatInfo.CurrencyNegativePattern in the .NET Framework. The CurrencyTextBox will only recognize values in the form of -n (Negative sign followed by number) for setting a negative value through the Text property or by pasting from the clipboard.

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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