Click here to Skip to main content
15,909,332 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help with code for telephone validator Pin
Christian Graus27-Oct-05 17:27
protectorChristian Graus27-Oct-05 17:27 
GeneralRe: Help with code for telephone validator Pin
12String27-Oct-05 17:31
12String27-Oct-05 17:31 
GeneralRe: Help with code for telephone validator Pin
Christian Graus27-Oct-05 17:34
protectorChristian Graus27-Oct-05 17:34 
GeneralRe: Help with code for telephone validator Pin
12String27-Oct-05 17:41
12String27-Oct-05 17:41 
GeneralRe: Help with code for telephone validator Pin
Christian Graus27-Oct-05 17:48
protectorChristian Graus27-Oct-05 17:48 
GeneralRe: Help with code for telephone validator Pin
Steve Pullan27-Oct-05 18:38
Steve Pullan27-Oct-05 18:38 
GeneralRe: Help with code for telephone validator Pin
Christian Graus27-Oct-05 18:41
protectorChristian Graus27-Oct-05 18:41 
GeneralRe: Help with code for telephone validator Pin
Dave Kreskowiak28-Oct-05 4:58
mveDave Kreskowiak28-Oct-05 4:58 
Christian Graus wrote:
It would be easy just to give him the code, but that's not really helping him, is it ?


Bravo! One of the few who thinks it's better to learn by doing (and screwing it up!) than by having it spoon fed to you!


To offer a different answer to his problem though... I've always done one of two things. Either used a Masked Edit Box or (more directly to his problem) just let the user type whatever they wanted into the box. Then in the validation or submit process, strip out everything that wasn't a number to create a string of numbers, measure the length for completeness, then put the dashes and parentheses (if needed) back in where they're supposed to go. Walla! Instant phone number that can be re-edited at any time, if needed.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Help with code for telephone validator Pin
Christian Graus30-Oct-05 11:13
protectorChristian Graus30-Oct-05 11:13 
QuestionRe: Help with code for telephone validator Pin
seee sharp27-Oct-05 19:12
seee sharp27-Oct-05 19:12 
AnswerRe: Help with code for telephone validator Pin
12String27-Oct-05 19:13
12String27-Oct-05 19:13 
QuestionDetecting system events Pin
Brett Peirce27-Oct-05 9:21
Brett Peirce27-Oct-05 9:21 
AnswerRe: Detecting system events Pin
Christian Graus27-Oct-05 15:08
protectorChristian Graus27-Oct-05 15:08 
AnswerRe: Detecting system events Pin
Briga28-Oct-05 1:41
Briga28-Oct-05 1:41 
QuestionHow to Change Date Format Pin
Paritos27-Oct-05 6:05
Paritos27-Oct-05 6:05 
AnswerRe: How to Change Date Format Pin
| Muhammad Waqas Butt |27-Oct-05 6:55
professional| Muhammad Waqas Butt |27-Oct-05 6:55 
AnswerRe: How to Change Date Format Pin
sanchayan_b27-Oct-05 7:09
sanchayan_b27-Oct-05 7:09 
QuestionUser Control Pin
ebpublic27-Oct-05 5:56
ebpublic27-Oct-05 5:56 
QuestionCreate network connection using vb.net Pin
Mekong River27-Oct-05 5:23
Mekong River27-Oct-05 5:23 
AnswerRe: Create network connection using vb.net Pin
enjoycrack27-Oct-05 7:08
enjoycrack27-Oct-05 7:08 
QuestionProgrammatically Run and Control an OpenOffice 2.0 program Pin
TheKriminal27-Oct-05 4:54
TheKriminal27-Oct-05 4:54 
AnswerRe: Programmatically Run and Control an OpenOffice 2.0 program Pin
Briga28-Oct-05 1:42
Briga28-Oct-05 1:42 
QuestionManaged Direct X Pin
faviochilo27-Oct-05 2:48
faviochilo27-Oct-05 2:48 
AnswerRe: Managed Direct X Pin
Christian Graus27-Oct-05 15:09
protectorChristian Graus27-Oct-05 15:09 
QuestionFinding Computers on a Domain (Urgent) Pin
MatthysDT27-Oct-05 1:40
MatthysDT27-Oct-05 1:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.