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..
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..
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.
ErrorProvider can work to some extent but still we need to write code for validation
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
Check this, hope it helps