Click here to Skip to main content
15,890,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralHELP PRINTING HTML Pin
Alasiad30-Jul-05 17:58
Alasiad30-Jul-05 17:58 
GeneralValue lifetime Pin
erikkl200030-Jul-05 6:25
erikkl200030-Jul-05 6:25 
GeneralRe: Value lifetime Pin
Dave Kreskowiak1-Aug-05 7:31
mveDave Kreskowiak1-Aug-05 7:31 
Generalassignment grader Pin
mtate3230-Jul-05 5:19
mtate3230-Jul-05 5:19 
GeneralRe: assignment grader Pin
tazbird30-Jul-05 16:36
tazbird30-Jul-05 16:36 
GeneralRe: assignment grader Pin
mtate3231-Jul-05 6:11
mtate3231-Jul-05 6:11 
GeneralRe: assignment grader Pin
mtate3231-Jul-05 6:46
mtate3231-Jul-05 6:46 
GeneralRe: assignment grader Pin
mtate3231-Jul-05 6:44
mtate3231-Jul-05 6:44 
OK I am not asking you to do my homework for me but I really need help understanding what I am doing so here is my next project due this comming sat.


Design and develop a program that validates the value a user enters into a TextBox control to ensure that the entry is a valid telephone number. The application should accept a maximum of 12 characters. When the user clicks a button, the program should determine if the entry is of the form 999-999-9999, where the character 9 represents any number.
If the entry is determined to be a telephone number, display an appropriate message, along with the separate substrings that compose the telephone number without the dashes. If the entry is not a telephone number, then display a message as to the reason why the entry is not a valid telephone number, clear the TextBox control and set focus to the TextBox control. Use String class methods to solve the problem.
Here are a few hints to help you code the String methods:
1. Check that the user has entered two dashes in the appropriate spaces.
2. Break the string into 3 substrings, represented as 999,999, and 9999.

Use the Visual Basic .NET IsNumeric() function to determine whether each substring is a valid number. The function accepts one parameter and returns a True or False value.
Here is some information about the IsNumeric function:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctisnumeric.asp



GeneralRe: assignment grader Pin
toppscrt1-Aug-05 18:32
toppscrt1-Aug-05 18:32 
GeneralRe: assignment grader Pin
mtate322-Aug-05 0:11
mtate322-Aug-05 0:11 
Generalu.are.u device linked with fingerprint recognition system in vb.net Pin
sscome30-Jul-05 3:29
sscome30-Jul-05 3:29 
GeneralRe: u.are.u device linked with fingerprint recognition system in vb.net Pin
Dave Kreskowiak31-Jul-05 19:17
mveDave Kreskowiak31-Jul-05 19:17 
GeneralForm Load and combobox Pin
Jodd30-Jul-05 1:23
Jodd30-Jul-05 1:23 
GeneralANSI & UNICODE Using VB 6 Pin
justzain29-Jul-05 22:19
justzain29-Jul-05 22:19 
Generalow to DragDrop a form with the mouse Pin
Member 195513229-Jul-05 20:39
Member 195513229-Jul-05 20:39 
GeneralRe: ow to DragDrop a form with the mouse Pin
Robert Rohde29-Jul-05 20:53
Robert Rohde29-Jul-05 20:53 
Questionhow to test if a datacolumn as changes Pin
isgrom29-Jul-05 13:26
isgrom29-Jul-05 13:26 
GeneralDrag-Drop, capture source's filename Pin
john john mackey29-Jul-05 12:15
john john mackey29-Jul-05 12:15 
Generalat the how to apply mutiple delimiter's end of a string within a textbox Pin
puppetgrimm129-Jul-05 10:49
puppetgrimm129-Jul-05 10:49 
QuestionCan you pass a local variable into sql statement? Pin
spettiford29-Jul-05 3:13
spettiford29-Jul-05 3:13 
AnswerRe: Can you pass a local variable into sql statement? Pin
oakleaf29-Jul-05 4:55
oakleaf29-Jul-05 4:55 
GeneralRe: Can you pass a local variable into sql statement? Pin
spettiford29-Jul-05 5:30
spettiford29-Jul-05 5:30 
AnswerRe: Can you pass a local variable into sql statement? Pin
oakleaf29-Jul-05 9:48
oakleaf29-Jul-05 9:48 
AnswerRe: Can you pass a local variable into sql statement? Pin
S. Senthil Kumar29-Jul-05 23:23
S. Senthil Kumar29-Jul-05 23:23 
GeneralTextbox column style in Datagrid Pin
itsVipin4u29-Jul-05 3:02
itsVipin4u29-Jul-05 3:02 

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.