I am wanting a SpinButton that allows high precision numbers to be entered by keyboard but only shows the number of decimal digits needed for the precision. If it is a whole number, I don't want to show any decimal digits.
<div><br class="webkit-block-placeholder"></div><div>The SpinButton has a Digits property but if it is set to 0, you can't enter any decimal digits from the keyboard. I also found that the SpinButton sometimes rounds the
SpinButton.Value when displaying it.</div><div><br class="webkit-block-placeholder"></div><div>I wrote a inherited SpinButton that seems to solve 99% of the issues, but I am not wild about the solution. Is there something I am missing? Anyone else have any suggestions?
</div><div><br class="webkit-block-placeholder"></div><div>Thanks,</div><div>James</div>