mmsteelers
Member
- Joined
- Feb 4, 2009
- Messages
- 9
- Programming Experience
- Beginner
Hi I have to make a basic program that:
Create a program with a simple interface that
1. Asks the user type his/her email address into a textbox.
2. When the user clicks the "Evaluate Email Address" button, one of two message boxes pops up:
"That is a valid email address!" with an "Information" icon, or "That is an invalid email address!" and on a second line, "Please retype your email address.", with an "Exclamation" icon
3. To be considered valid, the email address must
-include an "@" symbol, and
-it must end in either ".com", ".net", or ".org" or ".edu"
(I don't know how to check a string and test if its last four characters end with any of these and make it say not valid email address. I think I might have to use a case statement)
I really need help on number 3. That is where I am really stuck.
I am pretty sure that this shouldn't use regular expressions. It doesn't have to be perfect. It just has to meet the requirements of number 3.
Sorry for the noob question. I am taking intro to visual basic right now. So I don't know too much about Vb.net. Thanks to anyone who can help me with this.
Create a program with a simple interface that
1. Asks the user type his/her email address into a textbox.
2. When the user clicks the "Evaluate Email Address" button, one of two message boxes pops up:
"That is a valid email address!" with an "Information" icon, or "That is an invalid email address!" and on a second line, "Please retype your email address.", with an "Exclamation" icon
3. To be considered valid, the email address must
-include an "@" symbol, and
-it must end in either ".com", ".net", or ".org" or ".edu"
(I don't know how to check a string and test if its last four characters end with any of these and make it say not valid email address. I think I might have to use a case statement)
I really need help on number 3. That is where I am really stuck.
I am pretty sure that this shouldn't use regular expressions. It doesn't have to be perfect. It just has to meet the requirements of number 3.
Sorry for the noob question. I am taking intro to visual basic right now. So I don't know too much about Vb.net. Thanks to anyone who can help me with this.