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

public virtual void Invalidate()
public:
virtual void Invalidate()
abstract Invalidate : unit -> unit
override Invalidate : unit -> unit
Public Overridable Sub 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.

See Also

Shape Class
Microsoft.VisualBasic.PowerPacks Namespace
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)

Return to top