Detail:
If you define:
1. max = 10000
2. min = 0
3. decimalplaces=4
If user input 99.00004 and leave focus, the GUI will update the displayed value to 99.0000.
However, if you use numericUpDown.Value property to get the user typed value, you will get 99.00004 instead of 99.0000.
If your program prompts the message saying that user input was wrong, then the user will be confused as the GUI value was correct!!!
The bug was recorded by MS in 2007:
http://support.microsoft.com/?scid=kb%3Ben-us%3B814347&x=7&y=2
The bug was still not fixed in .NET Framework 3.5 (2009):
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/f45c16a5-8ddd-41e5-a0b8-5bec938ba8d7/
No comments:
Post a Comment