Occurs when the OwnerDraw property is set to true and a request is made to draw a date region.
[Visual Basic] Public Event DrawDate As DrawDateEventHandler [C#] public event DrawDateEventHandler DrawDate; [C++] public: __event DrawDateEventHandler* DrawDate;
The event handler receives an argument of type DrawDateEventArgs containing data related to this event. The following DrawDateEventArgs property provides information specific to this event.
Property | Description |
---|---|
BackColor | Gets the background color of the item that is being drawn. |
Bounds | Gets the rectangle that represents the bounds of the item that is being drawn. |
Date | Gets the DateTime object. |
Font | Gets the font assigned to the item being drawn. |
ForeColor | Gets the foreground color of the of the item being drawn. |
Graphics | Gets the graphics surface to draw the item on. |
Index | Gets the index value of the item that is being drawn. |
RegionType | Gets the type of the date region. |
State | Gets the state of the item being drawn. |
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
DateTimePicker Class | DateTimePicker Members | Wimark.Controls Namespace