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 ...

+ Reply to Thread
Results 1 to 2 of 2

Drawing on a MonthCalendar control

  1. Default 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



  2. Default 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."



+ Reply to Thread

Similar Threads

  1. About drawing something on a Control.
    By Application Development in forum DOTNET
    Replies: 6
    Last Post: 10-05-2007, 04:05 AM
  2. MonthCalendar control year spin box
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 08-17-2007, 02:25 AM
  3. Drawing in a user control
    By Application Development in forum DOTNET
    Replies: 7
    Last Post: 05-30-2006, 11:42 PM
  4. Drawing on the WebBrowser control
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 05-16-2006, 09:55 PM
  5. Control for drawing
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 05-10-2006, 11:27 PM