|Visual Basic (Declaration)|
Public Overridable Sub Update()
|Visual Basic (Usage)||Copy Code|
public virtual void Update()
|Visual Basic||Copy Code|
Contrast the Update method with the Refresh method. The Update method forces the control to repaint invalid areas immediately. The Refresh method has the control check for invalid areas and then immediately repaint invalid areas.
For more information, see the Refresh method in the Microsoft .NET Framework Reference.