Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Coloring selected dates on UltraMonthViewMulti
posted

Using 2012.2 with VS 2012.

 

I have an UltraMonthViewMulti calendar on a form. The form currently shows 20 months so it crosses two years. When a user double-clicks a particular date, I want to color that date. This is how they are signifying that the particular date is not available for use.

I can get the day they are on and use the CalendarLook to color it; however it colors it for the same date in all years that are showing. I only want it for the specific date they clicked on - not all dates across all years that happen to be displayed. Below is what I am doing. dDateSelected contains the date the user double-clicked on.

UltraCalendarLook1.DaysOfYearLook(dDateSelected.DayOfYear + 1).Appearance.BackColor = color.blue

Is there a way to do this?

Thanks
Howard