MonthCalendar.Paint MonthCalendar.Paint MonthCalendar.Paint MonthCalendar.Paint Event

Definición

Se produce cuando vuelve a dibujarse el control.Occurs when the control is redrawn.

public:
 event System::Windows::Forms::PaintEventHandler ^ Paint;
[System.ComponentModel.Browsable(false)]
public event System.Windows.Forms.PaintEventHandler Paint;
member this.Paint : System.Windows.Forms.PaintEventHandler 
Public Custom Event Paint As PaintEventHandler 
Atributos

Comentarios

El MonthCalendar control establece la UserPaint false marcadePaint bits en, por lo que nogeneraráelevento.MonthCalendarThe MonthCalendar control sets the UserPaint bit flag to false, so the MonthCalendar will not raise the Paint event. Para proporcionar una apariencia personalizada al MonthCalendar control, debe invalidar el OnPrint método, llamar a la implementación base de OnPrinty, a continuación, realizar el dibujo personalizado.To provide a custom look to the MonthCalendar control, you should override the OnPrint method, call the base implementation of OnPrint, and then perform custom painting.

Se aplica a