Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem (bug) with mmTextBox
Message
De
13/07/2007 13:33:26
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Problem (bug) with mmTextBox
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01240299
Message ID:
01240299
Vues:
64
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!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform