How to validate textbox control in c#. ?
i have so many textBox i need to validate them individually.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
Satyapriya NayakRank #47 · 31.5K reputationPosted Mar 29, 2013, 4:52 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 29, 2013, 5:19 AM EDT
hi,
text box has one event called "Validating", with the help of this we can validate the text box.
depending on requirement, we may write common code for validating text box.
please refer below link,
http://blog.scosby.com/post/2010/02/11/Validation-in-Windows-Forms.aspx
http://www.codeproject.com/Articles/13922/Validate-user-input-in-Windows-Forms
http://msdn.microsoft.com/en-IN/library/system.windows.forms.control.validating.aspx
hope this will help you.
amit singh17 reputationPosted Mar 29, 2013, 7:35 AM EDT