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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
AlanRank #669 · 3.6K reputationPosted Dec 6, 2007, 11:33 AM EST
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.