Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overloads Sub Invalidate( _
ByVal region As System.Drawing.Region, _
ByVal invalidateChildren As System.Boolean _
) |
Parameters
- region
- The System.Drawing.Region to invalidate.
- invalidateChildren
- true to invalidate the control's child controls; otherwise, false.
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