Hi. i wounder how i can check if an email address is correct when the user writing his/hers email inot a textbox?
//Dino
Hi. i wounder how i can check if an email address is correct when the user writing his/hers email inot a textbox?
//Dino
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AlanPosted Dec 6, 2007, 4:33 PM
See the MSDN example for the Validating event which, as luck would have it, is validating an e-mail address:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.validating.aspx
Notice that you have to add an ErrorProvider control to your form as well as a TextBox to use this code.