From: Abhishek K on
I am trying to give different colors to the events in SPCalendarView
available with Sharepoint 2007. I was able to do using the code as
below

SPCalendarItem item = new SPCalendarItem();
item.BackgroundColorClassName = "ms-cal-mycolorclass";
<We have to create class in calendar.css to make it work or render the
class while rendering the control>

This functionality works only for full day events. When an event is
partial day event ten color defaults to the default color of
Sharepoint Calendar View.

Any ideas, how can this be achieved?

Thanks
Abhishek Kulshreshtha