Hi all,

I'm having a bit of bother with the DateTimePicker control in .NET 3.5. I created a very simple form. It consists of just one DateTimePicker control called "DateTimePicker1". In the Load event of the form, I placed the following code:

DateTimePicker1.MinDate = "01/02/2010"
DateTimePicker1.MaxDate = "07/02/2010"

There is no other code. Again, this example is for illustrative purposes only. The current date is today, i.e., 11 February 2010

Ok.

When I fire up the application, the date displayed in the control is "07 February 2010". All fine.

However, when I click the little calendar/down arrow on the control to pick a date, the date changes to "01 February 2010". I don't want this to happen.

If I then select a date from control, say: 03 February 2010. The date stays there. If I click the calendar/down arrow on the control again to select another date, the date displayed in the control changes back to "01 February 2010".

It seems that this behaviour happens when the current date, in this case: 11 February 2010, is greater than the MaxDate assigned to the control. Is there any way around this? I don't want the date to change when I click the down arrow on the control.

Thanks in advance,

Ross