Date validation in windows form. (Vb)

Hi
I am using Datetime picker in my form(VB visual studio). How can I prevent user not to enter the future date. For example If date today is 2006/09/22 user must not enter future date, the date must be today or earlier but not before 2003/12/01.

Thanks in avance

[316 byte] By [Vaish] at [2007-12-24]
# 1

After you drag your date time picker control on to the form, in the form load event add the following code

Me.DateTimePicker1.MinDate = "12/1/2003"

Me.DateTimePicker1.MaxDate = Today

NagaSatishRupenaguntla at 2007-8-31 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...