Shape.Invalidate Method
Invalidates a specific region of a line or shape control and causes a paint message to be sent to the control.
Namespace: Microsoft.VisualBasic.PowerPacks
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
'Declaration
Public Overridable Sub Invalidate
'Usage
Dim instance As Shape
instance.Invalidate()
public virtual void Invalidate()
public:
virtual void Invalidate()
public function Invalidate()
Remarks
Calling the Invalidate method does not force a synchronous paint; to force a synchronous paint, call the Update method after you call the Invalidate method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualBasic.PowerPacks Namespace
Other Resources
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)