Visual Basic (Declaration) | |
---|---|
<SRDescriptionAttribute("Occurs when a control needs repainting.")> <SRCategoryAttribute("Appearance")> Public Event Paint As PaintEventHandler |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As CredentialsDialog Dim handler As PaintEventHandler AddHandler instance.Paint, handler |
C# | |
---|---|
[SRDescription("Occurs when a control needs repainting.")] [SRCategory("Appearance")] public event PaintEventHandler Paint |
C++/CLI | |
---|---|
[SRDescription("Occurs when a control needs repainting.")] [SRCategory("Appearance")] public: event PaintEventHandler^ Paint |
The event handler receives an argument of type PaintEventArgs containing data related to this event. The following PaintEventArgs properties provide information specific to this event.
Property | Description |
---|---|
ClipRectangle | Gets the rectangle in which to paint. |
Graphics | Gets the graphics used to paint. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2