Occurs before the button has be drawn, allowing the developer to completely customize the appearance of the control.
Syntax
Event Data
The event handler receives an argument of type UserDrawnButtonEventArgs containing data related to this event. The following UserDrawnButtonEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| ButtonStatus | The current status of the button being drawn. |
| Graphics | A handle to the graphics object responsible for the drawing. |
| PaintButton | Determines if the internal routines of the control should draw the button. |
| Rect | A rectangle representing the area being painted in the control. |
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also