views:

67

answers:

4

Is there any validation control available in .net win forms like asp.net web form?

Because it difficult to right condition for each control in my from also there are many repeated code in my form.

Can u please suggest right way to do this..

A: 

There is a project that developed a free validator just like the web forms one. You can find it here.

Or you can use MaskedTextBox controls or event driven validations as explained here.

Adrian Faciu
A: 

ErrorProvider can work to some extent but still we need to write code for validation

KoolKabin
A: 

They are not validator controls but set of validation classes to build rules for validating objects.

The Enterprise Library has a Validation Application Block

http://msdn.microsoft.com/en-us/library/ff664378(v=PandP.50).aspx

Scott Wylie