By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,932 Members | 1,486 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,932 IT Pros & Developers. It's quick & easy.

MonthCalendar background painting

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Robert Misiak" <ch***********@yahoo-cut.this.part.out-.com> wrote in
message news:j1*****************@newsread1.news.pas.earthl ink.net...
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

Nov 16 '05 #2

P: n/a
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

"Robert Misiak" <ch***********@yahoo-cut.this.part.out-.com> wrote in
message news:j1*****************@newsread1.news.pas.earthl ink.net...
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

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.