Just how customisable is a MonthView control?

Alc

Registered User.
Local time
Today, 07:05
Joined
Mar 23, 2007
Messages
2,421
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
 
Check out the DayBold() property, which is an array you can set, and which controls whether each visible day's font is bold.
 
Thanks for that. I'd worked out how to set all dates to be Bold or Normal, but not an individual date. Will give that a try.

Pushing my luck, I know, but did you have any thoughts on changing the start date?
 
What happens when you set the MinDate and MaxDate properties?
 
What happens when you set the MinDate and MaxDate properties?

Apologies for the delay in responding, I've been pulled onto a different problem and not had a chance to do much more with this one.

I can set values to MinDate and MaxDate, - and verify them via a message box - but have yet to work out how to use those values to alter the displayed calendar.
 

Users who are viewing this thread

Back
Top Bottom