Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem (bug) with mmTextBox
Message
From
13/07/2007 13:33:26
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Problem (bug) with mmTextBox
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01240299
Message ID:
01240299
Views:
63
Kevin,

If I format a mmTextBox as 'C' ,put it on a form and :

1. Enter say 500.00 into it
2. Then reenter the control
3. Use the arrow keys to move to the second 0 and change it to 5 so that the value is now 505.00
4. When I hit Tab the value returns to 500.00.

This is not desired behavior.

The problem occurs in the mmTextbox.FormatEventHandler code. The cevent param has the 500.00 value rather than the 505.00 value. I don't follow what is happening there because the ParseEventHandler's cevent param has the correct value.

A second problem that occurs ( which I may have to handle) is that if I set the maximum length to go into the 'C' formatted control to 9 so that the max value would be $999,999.99, the control will not let me type in more that 9 numbers and decimals, but when I leave the control the format adds the hundreds part to the control. Thus if I type 1250500.1 [max length], when I hit tab the control displays 1,250,500.10. I am sure this will cause problems with the database.

Calvin
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Next
Reply
Map
View

Click here to load this message in the networking platform