| Visual Basic (Declaration) | |
|---|---|
Public Overridable Sub Update() | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public virtual void Update() | |
| C# | Copy Code |
|---|---|
// Change the parent of the controls | |
| Visual Basic | Copy Code |
|---|---|
'Change the parent of the controls | |
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.