Click here to Skip to main content
16,005,141 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help with code for telephone validator Pin
12String27-Oct-05 16:35
12String27-Oct-05 16:35 
GeneralRe: Help with code for telephone validator Pin
Christian Graus27-Oct-05 16:38
protectorChristian Graus27-Oct-05 16:38 
GeneralRe: Help with code for telephone validator Pin
12String27-Oct-05 16:40
12String27-Oct-05 16:40 
GeneralRe: Help with code for telephone validator Pin
Christian Graus27-Oct-05 16:44
protectorChristian Graus27-Oct-05 16:44 
GeneralRe: Help with code for telephone validator Pin
12String27-Oct-05 16:48
12String27-Oct-05 16:48 
GeneralRe: Help with code for telephone validator Pin
Christian Graus27-Oct-05 17:11
protectorChristian Graus27-Oct-05 17:11 
GeneralRe: Help with code for telephone validator Pin
12String27-Oct-05 17:14
12String27-Oct-05 17:14 
GeneralRe: Help with code for telephone validator Pin
Christian Graus27-Oct-05 17:23
protectorChristian Graus27-Oct-05 17:23 
12String wrote:
All of the error messages will be handled via MsgBox message, that is why I have to code for the dashes and the numbers.


Yes, but you don't need to code it the way you have, and you shouldn't code it outside the function that validates the input.

12String wrote:
Now should I code this all under the button1.clicked function


As another function, I think so.

12String wrote:
should I delcare my TextBox as a global variable


This is always a hideous idea.

You have what you need in the checknumeric function, except what's in it is wrong. Remove the other code with the messageboxes, and instead add something which will work inside that function.

Christian Graus - Microsoft MVP - C++
GeneralRe: Help with code for telephone validator Pin
12String27-Oct-05 17:26
12String27-Oct-05 17:26 
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 
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 

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.