Decimal Textbox in Windows Forms
问题 I am doing an Financial Winforms application and am having some trouble with the controls. My customer needs to insert decimal values all over the place (Prices, Discounts etc) and I'd like to avoid some of the repeating validation. So I immediately tried the MaskedTextBox that would fit my needs (with a Mask like "€ 00000.00"), if it weren't for the focus and the length of the mask. I can't predict how big the numbers are my customer is going to enter into the app. I also can't expect him to