Click to See Complete Forum and Search --> : DateTimePicker


rajibdey2005
August 5th, 2006, 01:40 PM
I have a DateTimePicker in my windows form and i want that, it will not show previous months depending upon the system date and will show preceding three month only (90 days). Can it be done in VB.NET 2002, if so how?

aniskhan
August 5th, 2006, 10:11 PM
u have to set minDate property
Me.DateTimePicker1.MinDate = Today.AddMonths(-3)

rajibdey2005
August 6th, 2006, 01:39 PM
Thanks for the reply but what to do to stop DateTimePicker showing the previous months. I think u must be having the solution if so then please help me out.

aniskhan
August 6th, 2006, 10:10 PM
rajibdey2005 i have set the minDate property of datetimepicker control and the user can move only three months previous.