|
-
Mar 5th, 2013, 10:39 AM
#7
Re: Formatting a string into a phone number format
 Originally Posted by dunfiddlin
I suspect you're on your own on that one. It is a popular but entirely untrue myth that the masked textbox requires little or no validation! Foolproof, it ain't!
I never said anything about validation as validation will need to be done no matter what UI control you use, but what it does offer is a way to help the user enter the data into the desired format (using visual queues too) which would be much more ideal than a standard textbox in this case, that's the point I was getting across.
 Originally Posted by nbrege
Yes, I'm retrieving from a database. It is being written by another program, which can't be changed...
Then you'll want to consider making an extension method as MattP has suggested to keep the formatting in one place & have the flexibility for calling it from the string object directly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|