Click here to Skip to main content
15,888,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have added a calender in my form and i want that it does not select the previous dates form today and also for another calender it does not select the future date form today.
Please Help me by giving the code in C# i need it for my project..
Posted
Updated 22-Apr-11 8:55am
v2
Comments
Glen Ramsey 13-Aug-21 0:38am    
my solution is a calender that functions properly

1 solution

Assuming that you mean the Windows Forms MonthCalendar[^], take a look at the MinDate and MaxDate properties.
 
Share this answer
 
Comments
Orcun Iyigun 22-Apr-11 16:54pm    
simple my 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900