I have this project when the user stops writing on a NumericUpDown or a MaskedTextBox it will automatically update some values.
I’m using the event on KeyPress and a function with a CancellationToken.
The problem with the NumericUpDown is that if you write a number with a dot it will automatically convert it to a full number ignoring the dot.
For example if I write : 123.25 it will convert to 12325,00 (in the attachments “Videos.zip” MaskedTextBox.mp4 )
With the MaskedTextBox sometimes when I write slowly it will remove one of the chars written, and when I try to reset it by deleting everything it keeps a random number of the chars written.
For example if I write : 12/02/2012 and delete everything there still remains 12/02/____ (in the attachments “Videos.zip” NumericUpDown.mp4)
In the attachments I uploaded the project.
Is there a better way to deal with it? or I’m doing it wrong
The MaskedTextBox problem is caused by a recent fix and will log as a regression. It’s caused by the key event and the control trying to update the client back.
The NumericUpDown is caused a language mismatch. Your decimal point is the comma, not the dot. When the format doesn’t match the language Wisej resorts to the browsers parseFloat() which in your case is ignoring the dot.
Please login first to submit.