(Print this page)

New article: Limiting date selection in the DateTimePicker control
Published date: Thursday, April 27, 2017
On: Moer and Éric Moreau's web site

I have just published the April article. You can read it from http://emoreau.com/Entries/Articles/2017/04/Limiting-date-selection-in-the-DateTimePicker-control.aspx.

We are specifically talking about Windows Forms this month. One question that comes back every once in a while in forums is how to limit the selection of dates in the DateTimePicker control. I have often see people answering that the control itself cannot do much and the way to go is to validate after the selection. This is far from being the ideal solution!

I have seen this question asked once again lately on Experts Exchange. One of the great experts there named Ark provided a really neat solution that I want to share with you.


(Print this page)