and how to use Error Provider
required field validator in windows form
How to provide required field validator in windows form application c#
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.
Santhosh Kumar JayaramanPosted Aug 18, 2012, 9:33 PM
Validation is already built into the WinForms library.
Each
Validation occurs as part of focus. When you focus off of a control, its validation events are fired. In fact the focus events are fired in a specific order.Control-derived object has two events namedValidatingandValidated. Also it has a property calledCausesValidationWhen this is set to true (it is true by default) then the control participates in validation. Otherwise, it does not.Check this.
http://msdn.microsoft.com/en-us/library/ms950965.aspx