The ErrorProvider component of Windows Forms is used to validate user input on a form or check. It is typically used to validate user input on a form, or to display errors in a dataset. An error provider is a better alternative to displaying an error message in a Message Box, as the error message will no longer be visible once a message box is dismissed.
The ErrorProvider component displays an error icon next to the relevant control, such as a text box ; a ToolTip shows the error message string when the user positions the mouse pointer over the error icon.
Create Is Validating Method
The SetError
method is called with or without appropriate error text during a control's Validated
event, depending upon the content in the control.
Complete Source Code
We use cookies to ensure you get the best experience on our website, if you continue to browse you'll be acconsent with our Cookies Policy.
Got it!