Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Masked text boxes
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01174460
Message ID:
01174477
Views:
13
I wouldn't recommend anyone to use the MaskedTextBox control. See my complaints at http://www.levelextreme.net/wconnect/wc.dll?10,7,10,57

You should better create your own user control. For an example of a numeric input control, see http://www.utmag.com/wconnect/wc.dll?LevelExtreme~9,7,10,1467

>Hi to all.
>
>I'm working with Masked text boxes (C#) and I can't recreate the following VFP code:
>
>
>SET CONFIRM ON
>SET SEPARATOR TO ","
>SET POINT TO "."
>ThisForm.txtCurrency.Value = 0.000
>ThisForm.txtCurrency.InputMask = "9999999.999"
>
>
>The problem is with Culture property. I don't want to use my local culture setting y I don't find the equivalent for point and separator.
>
>Another issue is the user typing. In VFP when user press "dot key" the cursor moves immediately behind the decimal point and begins to type the decimal values in text box.
>This do not happen in "Masked text boxes".
>
>If the text box value (it's a float value) contains a dot character, this is ignored for calculations, furthermore, allows spaces among numbers when user typing (even if mask is "99999.999")
>Only works fine if textbox value contains a comma.
>How can I solve this ?
>
>
>T.I.A.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform