Share via


Shape.Refresh Method

Forces a control to invalidate its client area and immediately redraw itself and any child controls.

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

'Declaration
Public Sub Refresh
'Usage
Dim instance As Shape

instance.Refresh()
public void Refresh()
public:
void Refresh()
public function Refresh()

Remarks

Notes to Inheritors:

When you override Refresh in a derived class, be sure to call the Refresh method so the control and its child controls are invalidated and redrawn.

.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)