MonthCalendar.Paint Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the control is redrawn.
public:
event System::Windows::Forms::PaintEventHandler ^ Paint;
[System.ComponentModel.Browsable(false)]
public event System.Windows.Forms.PaintEventHandler Paint;
[System.ComponentModel.Browsable(false)]
public event System.Windows.Forms.PaintEventHandler? Paint;
[<System.ComponentModel.Browsable(false)>]
member this.Paint : System.Windows.Forms.PaintEventHandler
Public Custom Event Paint As PaintEventHandler
Event Type
- Attributes
Remarks
The MonthCalendar control sets the UserPaint bit flag to false
, so the MonthCalendar will not raise the Paint event. 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.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.