CustomDrawDayNumberCellEventArgs Class
The sample code given in this help topic needs to be updated (or at least annotated) as it has some flaws. Now I’m not sure if the DateEdit control is painted differently on Vista machines (I didn’t specifically request that it did), but when you open the drop down and click on the Month/Year label within the calendar, the calendar zooms to a higher level ... namely, a year at a glance.
The logic in the example didn’t take this into account and only worried about painting days of the month. When the control morfs into year-at-a-glance mode, instead of month names being on the control, colored 1’s appear because the code in DrawItem says to always write out the Day:
e.Cache.DrawString(e.Date.Day.ToString(), e
Bryan