I've been playing around with the MonthView control for a few days. Following examples I've found on this site and others, I know some of what it can do, but I want to do two specific things and can't seem to work out (a) if they're possible and (b) the easiest way to approach them.
Firstly, I know the control can be set to display a year, by changing the properties, but can a MonthView be set to start and end at different dates depending on a value passed to them? For example, could I open a form displaying such a control and have it run from June 15th 2014 to June 14th 2015 in one case, but February 22nd 2014 to February 21st 2015 in the next? If only full months can be displayed, that would be almost as good. It's being able to start and end a year at different points that I need to accomplish.
Secondly, I want to highlight date ranges CLEARLY. For example, if bookings have been made on Feb 1st - 10th, July 2nd - 25th and October 5th - 12th, I want those cells to be shown in a very different format to the rest of the days. I'm playing around with the SetStart and SetEnd properties, but the best I've managed so far is to change the font colour, which doesn't stand out enough (to my mind). Ideally, I want something that gives the appearance of highlighting an item in Word or using the Fill Cell option in Excel.
If anyone knows for a fact that the above just can't be done, please let me know and I can explore other options.
Thanks, as always
Firstly, I know the control can be set to display a year, by changing the properties, but can a MonthView be set to start and end at different dates depending on a value passed to them? For example, could I open a form displaying such a control and have it run from June 15th 2014 to June 14th 2015 in one case, but February 22nd 2014 to February 21st 2015 in the next? If only full months can be displayed, that would be almost as good. It's being able to start and end a year at different points that I need to accomplish.
Secondly, I want to highlight date ranges CLEARLY. For example, if bookings have been made on Feb 1st - 10th, July 2nd - 25th and October 5th - 12th, I want those cells to be shown in a very different format to the rest of the days. I'm playing around with the SetStart and SetEnd properties, but the best I've managed so far is to change the font colour, which doesn't stand out enough (to my mind). Ideally, I want something that gives the appearance of highlighting an item in Word or using the Fill Cell option in Excel.
If anyone knows for a fact that the above just can't be done, please let me know and I can explore other options.
Thanks, as always