Showing posts with label validating. Show all posts
Showing posts with label validating. Show all posts

Friday, October 14, 2011

Validation in windows application in C#

Whenever we create an application, some forms need specific entries. For example, phone numbers must be all numeric, whilst email ID must have a @ symbol followed somewhere by a . symbol. For these purposes, no automatic validators are provided for windows applications. Hence, we must manually give validations to these fields.

There are many logical routes to valication. The following is the validation code that I follow. Hope it helps you too. In case of any doubts or suggestions, kindly feel free to comment or mail me at nardz07@gmail.com.