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.
Unfortunately, activation email could not send to your email. Please try again.

Does the CurrencyTextBox control support displaying negative values?

 

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.

Article ID: Published Date: Last Revised Date: Platform: Control:
1104 04/30/2011 07/10/2014 Windows Forms CurrencyTextBox
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.