Click here to Skip to main content
15,868,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I mask textbox right that? input string is 25, but in textbox should display like this: 000000025
Posted

1 solution

You can either create your own control by inheriting from a textbox and then adding code to insert zeros before the code.

The second option would be to use a masked text box.
You can use one from Silverlight Super TextBox (ComboBox, Masked TextBox and More)[^] or http://www.componentone.com/SuperProducts/MaskedTextBoxSilverlight/[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900