Articles in this section
Category / Section

How to change the format for display of negative values in WinForms DoubleTextBox?

1 min read

Display negative values

You can control the display of negative values in a DoubleTextBox using NumberNegativePattern property. This value is initially set from the System.Globalization.NumberFormatInfo and can be changed based on your requirements or based on the locale. Here are the patterns based on the value of the NumberNegativePattern value:

ValueDisplay0(n) 1-n2- n3n-4n -

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied