Drawing on a MonthCalendar control - DOTNET
This is a discussion on Drawing on a MonthCalendar control - DOTNET ; I want to draw on a MonthCalendar control. I see that the control has a
CreateGraphics() method, so I can get its Graphics object. But I can't find
a suitable event to hook into to do the drawing. Does anyone ...
-
Drawing on a MonthCalendar control
I want to draw on a MonthCalendar control. I see that the control has a
CreateGraphics() method, so I can get its Graphics object. But I can't find
a suitable event to hook into to do the drawing. Does anyone have any
suggestions, or can you point me to an example? Thanks in advance.
--
David Veeneman
Foresight Systems
-
Re: Drawing on a MonthCalendar control
Found the answer-- From
http://msdn2.microsoft.com/en-us/lib...calendar.aspx:
"The MonthCalendar control is drawn by the operating system, so the Paint
event is never raised. If you need to provide a customized look to the
MonthCalendar control, you should override the OnPrint method, call the base
implementation of OnPrint, and then perform custom painting."
Similar Threads
-
By Application Development in forum DOTNET
Replies: 6
Last Post: 10-05-2007, 04:05 AM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 08-17-2007, 02:25 AM
-
By Application Development in forum DOTNET
Replies: 7
Last Post: 05-30-2006, 11:42 PM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 05-16-2006, 09:55 PM
-
By Application Development in forum DOTNET
Replies: 1
Last Post: 05-10-2006, 11:27 PM