dbicButton Send comments on this topic.
UserDrawnButton Event
See Also 
dbicButton Assembly > Dbi.WinControl.Button Namespace > dbiButton Class : UserDrawnButton Event

Occurs before the button has be drawn, allowing the developer to completely customize the appearance of the control.

Syntax

Visual Basic (Declaration) 
Public Event UserDrawnButton As dbiButton.EventUserDrawnButtonHandler
C# 
public event dbiButton.EventUserDrawnButtonHandler UserDrawnButton

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.

PropertyDescription
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