Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
1.00/5 (8 votes)
See more:
Create a program to check if we have a valid IP Address (a valid IP address is composed of 4 numbers, each is between 0 and 255). Create four textboxes (where you enter each of the numbers) and a button. When you click on the button, it will tell you whether we have a valid IP or not (also, give message when user doesn't enter a number in a textbox)
Posted
Updated 31-Jan-13 8:38am
v2
Comments
DinoRondelly 31-Jan-13 14:17pm    
Sounds easy enough where are you stuck?
[no name] 31-Jan-13 14:46pm    
the code for the button?!
DinoRondelly 31-Jan-13 14:48pm    
Which part?
[no name] 31-Jan-13 14:51pm    
when the user clicks on the button, it will inform them that their IP address either its valid or not?
Abhishek Pant 31-Jan-13 14:56pm    
suggestion: use validation code you got from earlier question[^] and generate a alert when it remains blank on click event of button.

1) DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
2) "HELP! HELP HELP!! neeeeeeeeeeeed help!!" is not a good subject - it tells us nothing about your problem (except your lack of maturity).
3) Don't post the same question under different guises - we cna read and remember and notcie these things.
4) We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
 
Share this answer
 
Comments
[no name] 31-Jan-13 15:07pm    
I'm Sorry, I do believe i made a mistake!
but please i do need help, i do not know the code for the button from the previous question>?
[no name] 31-Jan-13 15:10pm    
@OriginalGriff
In this thread they go over validating an ip address,

http://vbcity.com/forums/t/64595.aspx[^]

No sure what you will need from there, when the user press your button call the function you create to validate and have that function return true or false and display the message you want the user to see.
 
Share this answer
 
Comments
[no name] 31-Jan-13 15:08pm    
Thank You! ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900