Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Telphone Numbers/SocSecNo/Numeric Formats
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00715888
Message ID:
00716064
Vues:
19
Hi Roland,

In .NET you need to use the Parse and Format methods to format your control. Refer to Message #670154 for sample code.

To format the text, you use regular expressions as Bonnie mentioned in her message. Use her second link to look up the regular expressions to use for your needs. There are samples given.

>Hi everyone. Hope everone is having a good Sunday.
>
>WinForm Controls
>
>How do you specify an Editing and Display format string in a control properties window for a Textbox, ComboBox etc. for editing and displaying the values that you entered or display with a format?
>
>Label Display
>
>Telephone Number (999) 999-9999
>Social Security Number 999-99-9999
>Department Number 9999
>Dates mm/dd/yy
>
>Format charsacters not to be included with stored to the SQL Database.
>
>Thanks
>Roland
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform