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
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