In Part 3 we discussed validating techniques. Now in the final part of this series we will discuss how to validate the form as a whole. How to Trigger Validation when the Form is Closing: If you have worked with validation in the past, you may have noticed that the unfocused controls do not trigger […]
Tag: Validation
PrimalForms 2011: Validating the Form – Part 3
In Part 2 we discussed how to validate a control. Now we will cover some techniques that can be utilize for validation. Validating Techniques: Regular Expressions: For more complex validation, such as validating an email address, you may need to rely on Regular Expressions. Regular expressions are useful because it allows you to match complex […]
PrimalForms 2011: Validating the Form – Part 2
In Part 1 we discussed the import events and properties that are needed for validation. Now we will discuss how to validate a control. How do I validate a control? As it turns out, validating controls depends on what type of control and the format of the data you wish to validate. Typically you will […]
PrimalForms 2011: Validating the Form – Part 1
A good user interface will validate user input to ensure it is in the correct format. This may come in the form of simply checking if there is an entry for a field, such as a name or a more complex task such as validating an email address. Thankfully WinForms has built in mechanisms to […]