Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Mask Textbox or Not?
Message
From
23/01/2010 12:53:39
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01445645
Message ID:
01445654
Views:
26
>>>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform