Occurs when the control is redrawn.
Syntax
| Visual Basic (Declaration) | |
|---|
<SRCategoryAttribute("Appearance")>
<SRDescriptionAttribute("Occurs when a control needs repainting.")>
Public Event Paint As PaintEventHandler |
| C# | |
|---|
[SRCategoryAttribute("Appearance")]
[SRDescriptionAttribute("Occurs when a control needs repainting.")]
public event PaintEventHandler Paint |
| C++/CLI | |
|---|
[SRCategoryAttribute("Appearance")]
[SRDescriptionAttribute("Occurs when a control needs repainting.")]
public:
event PaintEventHandler^ Paint |
Event Data
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. |
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also