This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Is there a way to constrain the Metro Elements NumericUpDown to only allow entry of Integer numbers (and not show decimal points or fractional number). |
|
|
We've added a FormatString property to the NumericUpDown, this will let you remove the decimal point by setting it to "0", which will display integer numbers only. As is standard setting it to something like "000" will display leading zeroes (if the value is less than 100 in this case). As this is only a formatting measure users would still be able to adjust the value if the SmallChange is set to a fractional number - for every click of the +/- buttons the value will update and be some fraction, but the visual will only change once it reaches the next whole number. If it's acceptable for you to ensure that the SmallChange is an integer the control should function as you expect, but try it out and let us know if it fits your requirements. This new property will be available in the 21 December 2012 nightly build which we be available at around 1200 GMT. You can download this from your account page at http://www.mindscapehq.com/store/myaccount. |
|
|
Any chance that this FormatString functionality could be ported to WPF Elements NumericUpDown? |
|
|
Hello WPF Elements has an IntegerUpDown control that you can use instead for integer numbers. Or do you need the FormatString functionality for something else? Jason Fauchelle |
|
|
Of course it does! Thanks |
|