Showing posts with label Regex. Show all posts
Showing posts with label Regex. Show all posts

Thursday, November 29, 2012

Email validation using ErrorProvider in C# Windows Application

C# Windows Application provides an ErrorProvider control, which is similar to the ValidationSummary control in Asp.Net, this control consolidates all the error messages in the form and alerts the user on the Form errors.

In this post we shall see on how to use the ErrorProvider control to validate Email in a C# Windows Form.

RegularExpression Validation using Regex class in C# Windows Application

Asp.Net provides a RegularExpression Validator to validate custom expressions, in Windows Forms there are no such validators. However we can make use of the methods in the Regex class to validate custom expressions in C# Windows forms.

In this post we shall see on how to use the Regex class to validate custom expressions in a C# Windows forms Application.