C errorprovider validating
Super Validator also provides validation based on the Regular Expressions.You can read more about regular expressions in MSDN starting at following URL: Regular Expression Validator is assigned to input field it looks like this in property grid: Super Validator component includes Comparison Validation that allows you to compare values of two input fields or to compare input field value to a predefined value you set.You can use this for example to ensure that password entered matches the confirmation password on input form or to ensure that numeric input value is greater than number you specify.Here is an example of input form that uses comparison validation to ensure that two password fields are the same: event on custom validator. In that case the user may not notice the error until later and may continue entering more values in the invalid field.Perhaps the biggest problem of all is that the user cannot cancel the form.Open Microsoft Visual Studio and create a new windows form application.Then, drag two textboxes, labels, button and an error provider.
If any control has a non-blank error message, the program displays it in a message box and exits the event handler.
First, add the following code to the Form’s constructor after the Initialize Component method: This is a handy trick to prevent implicit validation of our controls when they lose focus.