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?
Printable View
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?
u have to set minDate property
Code:Me.DateTimePicker1.MinDate = Today.AddMonths(-3)
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.
rajibdey2005 i have set the minDate property of datetimepicker control and the user can move only three months previous.