Chapter 22: Performing Validation


Chapter 22

Performing Validation

After completing this chapter, you will be able to:

  • Examine the information entered by a user to ensure that it does not violate any application or business rules.

  • Use the CausesValidation property and understand the limitations of the validation events of forms and controls.

  • Perform validation effectively but unobtrusively.

  • Use the ErrorProvider control for reporting error messages.

  • Use the StatusStrip control to implement a status bar for a form.

In the previous two chapters, you saw how to create a Windows Forms application that uses a variety of controls for data entry. You created menus to make the application easier to use. You have learned how to trap events raised by menus, forms, and controls so that your application can actually do something besides just look pretty. While careful design of a form and the appropriate use of controls can help to ensure that the information entered by a user makes sense, there are often additional checks that you need to perform. In this chapter, you will learn how to validate the data entered by a user running an application to ensure that it matches any business rules specified by the application's requirements.




Microsoft Visual C# 2005 Step by Step
Microsoft® Visual C#® 2005 Step by Step (Step By Step (Microsoft))
ISBN: B002CKYPPM
EAN: N/A
Year: 2005
Pages: 183
Authors: John Sharp

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net