Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to put an Input Mask on a text box
Message
De
25/02/2005 08:54:14
Chris Bohling
Myers and Stauffer LC
Shawnee, Kansas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00990128
Message ID:
00990498
Vues:
17
You could create the display you want by adding event handlers to the format and parse events of the textbox's databinding object. For an example, see the code for the textbox simple data binding sample at:

http://samples.gotdotnet.com/quickstart/winforms/

The VB sample is at:

http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path=/quickstart/winforms/Samples/Data/SimpleBinding/SimpleBinding.src&file=VB\SimpleBinding.vb&font=3


C#:

http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path=/quickstart/winforms/Samples/Data/SimpleBinding/SimpleBinding.src&file=CS\SimpleBinding.cs&font=3

>Hi.
>I have a text Box which I want '25AABCDE' to display as '25-AA-BCDE'
>In VFP, this is done using InputMask of : XX-XX-XXXX but I cant
> see anything similar in the Dot Net Properties box .
>
>Any help appreciated.
>
>Regards,
>Gerard
Christopher Bohling, Consultant
http://www.ChristopherBohling.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform