Hi there,
Why not use the default NumericUpDown control with 2 decimal places and the
ThousandsSeparator
set to true. This will add in the regional separator for thousands so you won't need to worry about European dots as separators. E.g.
System.Windows.Forms.NumericUpDown MyUpDown = new System.Windows.Forms.NumericUpDown();
MyUpDown.ThousandsSeparator = true;
MyUpDown.DecimalPlaces = 2;
This will create a box that (if in the UK) contains the following text for the input number 10000.55:
10,000.55
or in Europe 10.000,55
This is a far better solution than a custom text box. To put the currency symbol you want, use a label in front of the NumericUpDown control.
Hope this helps,
Ed