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.comwww.prenia.comWeblog: blogs.prenia.com/cathi