Make some dates unselected on calendar control

aman

Registered User.
Local time
Today, 14:01
Joined
Oct 16, 2008
Messages
1,251
Hi guys

I am building timesheet system for my company and I need your help in this.In my form on the mouse down event of combobox,calendar appears.From this i can select any day,month or year but now I want to put some constraints on the calendar control as follows:
1. No dates after todays date should become visible.
2. only five days before todays date should become visible and all other days should not be selected by the user.
3. The user is not allowed to change month as well. and suppose if todays date is 01/09/2009 then only last month can be selected by user as user has the right to enter the timesheet for last 5 working days.

I hope anyone can help me to figure out this.
Thanks in advance!

Aman
 
Impossible to do (as far as I know) with the defeault control, you have to build your own in order to get what you want.
 
OK thats fine. so is there any way to put validation on the combobox if the date is greater than todays date then give an error message and also if the date is less than 5 working days from the todays date then again give an error message.

Thanks
Aman
 

Users who are viewing this thread

Back
Top Bottom