and how to use Error Provider
Required field validator in windows form
How to provide required field validator in windows form application c#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Aug 18, 2012, 5:33 PM EDT
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