"Mo"

Windows Forms Validation

Published on

Windows Forms Validation

Authors

I’ve been doing some research on best practices for validation in Windows Forms, and I came across a nice set of MSDN articles by Michael Weinhardt where he shows how to create a validation framework that is very similar to the validators found in ASP.NET (i.e. required field validator, regular expression validator, etc). It includes container and form validators that basically manage the control validators already on the form. The link to the articles is to the third article in the series, but the download contains all of the source. His code was apparently incorporated into the Genghis framework as well.

I’m interested in something similar for 2.0, but I haven’t found anything. I did see an older post from Chris Sells about moving Genghis over to 2.0, but I haven’t seen any updates on that. I’m considering doing it myself, but if anyone has any better ideas, I’m open.