MonthCalendar background painting

  • Thread starter Thread starter Robert Misiak
  • Start date Start date
R

Robert Misiak

Hi everyone-

I've done a lot of searching around on the web and I'm sure the answer to
this question is no, but I'll ask anyway. Is it possible to create an
inherited MonthCalendar control and override the member that paints the
background? I've tried working with OnPaint, OnPaintBackground to no avail.
Perhaps someone has a similar calendar control implementation out there?

Thanks,
Robert
 
You might be able to do it by creating a WndProc and doing your painting on
the WM_ERASEBACKGROUND message.

The problem is that the MonthCalendar control is based on a Windows Common
Control which is an ActiveX component, not a .NET component.

Syncfusion has a very powerful calendar control in their suite. It will let
you change the background painting and do a lot more. I'm sure there are
others out there as well.

Pete
 
Back
Top