This project is read-only.
Sadly Microsoft has never included a validation control the CheckBox control. Yet, why would they? A checkbox is to select an option and in a sense it is always optional. I see no fault in this logic.

However, there is a comment element found in web applications which require you to check a box to indicate that you agree to certain terms and services. I am sure over 80% of web developers have had to do this at some point in time and if you haven't, you will eventually.

Yet again Microsoft is not at fault even though it is a commonly used method. Why? Easy, it is a design choice and there are many other options for achieving this.

Even still, it is a design choice that many might not have full say over or do not have a compelling enough reason to sway others away from this choice. So we are forced to spend too much time coming up with or finding a solution. Luckily you will find many. However none that I have come across offer a solution you can actually throw in your toolbox with the rest of the validators.

That is where this control steps in to fill that void while at the same time allowing you to make any modifications to it by providing the source code. Hopefully this will have saved many developers time wasted on something so trivial.

It would be nice if a control such as this came with Visual Studio out of the box. However until it happens if it does at all you can now use this validator which works just like the rest of them.

Gregory Kornblum - Tensai Labs

Last edited Nov 30, 2008 at 10:17 PM by Hakke, version 3