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&#39;t enter any decimal digits from the keyboard. &nbsp;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. &nbsp;Is there something I am missing? &nbsp;Anyone else have any suggestions?
</div><div><br class="webkit-block-placeholder"></div><div>Thanks,</div><div>James</div>