how to validate textbox control in c#. ?
i have so many textBox i need to validate them individually.
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.
amit singhPosted Mar 29, 2013, 11:35 AM
Jignesh TrivediPosted Mar 29, 2013, 9:19 AM
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.
Satyapriya NayakPosted Mar 29, 2013, 8:52 AM