Paint Event
See Also 
SourceCode.Workflow.WizardFramework.Authentication Namespace > CredentialsDialog Class : Paint Event



Glossary Item Box

Syntax

Visual Basic (Declaration)  
<SRDescriptionAttribute("Occurs when a control needs repainting.")>
<SRCategoryAttribute("Appearance")>
Public Event Paint As PaintEventHandler
Visual Basic (Usage) Copy Code
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

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: 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

See Also