Share via


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

See Also

Reference

Shape Class

Shape Members

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)

Introduction to the Line and Shape Controls (Visual Studio)