Use the custom verification component library to expand Windows Forms

Source: Internet
Author: User
Abstract: data verification is a key step to ensure normal data capture and subsequent processing and reporting. This article introduces the basic structure of program verification inherent in Windows Forms, and develops a custom verification component library for providing more efficient verification functions based on this. This verification function is used with ASP. NET verification controls are similar.
Download the winforms04252004_sample.msi sample file.
Content on this page
Introduction
Main functions of Windows form verification
Program verification and declarative verification
Build Design Support
Imitation is the most sincere compliment
Description of required field validators
BaseValidator: divide and conquer law
Put a penny and a pound
Completed custom verification infrastructure
Conclusion
Other Custom Verification Solutions
C # and Visual Basic. NET
Genghis
Thank you
References
Introduction
Everyone calls me weirdo. One of my favorite movies is Amazon Women on the Moon, which imitates B-level sci-fi movies in 1950s in The same style as the kentuky Fried Movie, it consists of several comedy clips. One short film "Two creden" tells the story of Karen and Jerry (played by Rosanna Arquette and Steve Guttenberg respectively) on the evening of their first meeting. The story begins when Jerry arrives at Karen's apartment. After a few minutes of easy and friendly conversations, Karen suddenly asked Jerry to present two creden。-one credit card and one valid driver's license. Karen checked Jerry's appointment through proof of identity. This sudden change formed the main line of the comedy. Unfortunately, Jerry did not pass the identity check and Karen refused the appointment. In addition to being funny, this story is also of practical significance. Windows form developers can clearly understand that they should always verify the data to avoid unexpected situations, just like checking Steve Guttenberg's appointment in the play. On the contrary, successful data verification is just like checking Rosanna Arquette in the play, which is a pleasure for the authors of the short series.
Main functions of Windows form verification
Simply put, verification refers to the process of ensuring data integrity and accuracy before subsequent processing or storage. Although verification can be implemented at both the data layer and the business rule application layer, it should be included in the presentation layer to form a cutting-edge verification defense. With the UI, developers can usually construct a more user-friendly, responsive verification process for end users and provide more information, at the same time, it can avoid unnecessary two-way network communication issues such as cross-N layer applications. Verification can include type, range, and business Rule Check. The form in figure 1 can apply all of these types of verification.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.