Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Mask Textbox or Not?
Message
De
23/01/2010 12:53:39
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01445645
Message ID:
01445654
Vues:
25
>>>Hi,
>>>
>>>I just realized (ran into it) that a regular win forms textbox does not have a Mask property. So I found out that there is a Masked Textbox in VS 2005. But then I read here in some of the old messages that Masked Textbox is not a good idea. I need to have some text boxes to have a Format (!) - automatic upper case and limit a number of characters to, say, 10 or 15. Will Masked Textbox work in this case or should I seek a 3P products?
>>
>>Try the MaskedTextBox. Mask should probably be '>??????????'
>>( > forces following input to upper case, number of ? will determine maximum length)
>
>Thank you. If the regular textbox with CharacterCasing does not work I will turn to masked textbox.

Should work fine - but depends on exactly what you want. A MaskedTextBox with the Mask I suggested will *only* allow upper case A-Z. The TextBox would allow anything (but with alphabetic input converted to upper)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform