System.Windows.Forms.MonthCalendar.Paint Event

Occurs when the control is redrawn.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.ComponentModel.Browsable(false)]
public event PaintEventHandler Paint

Remarks

The System.Windows.Forms.MonthCalendar control sets the ControlStyles.UserPaint bit flag to false, so the System.Windows.Forms.MonthCalendar will not raise the MonthCalendar.Paint event. To provide a custom look to the System.Windows.Forms.MonthCalendar control, you should override the Control.OnPrint(PaintEventArgs) method, call the base implementation of Control.OnPrint(PaintEventArgs), and then perform custom painting.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0