System.Windows.Forms.Control.Update Method

Causes the control to redraw the invalidated regions within its client area.

Syntax

public void Update ()

Remarks

Executes any pending requests for painting.

There are two ways to repaint a form and its contents:

The Control.Invalidate method governs what gets painted or repainted. The Control.Update method governs when the painting or repainting occurs. If you use the Control.Invalidate and Control.Update methods together rather than calling Control.Refresh, what gets repainted depends on which overload of Control.Invalidate you use. The Control.Update method just forces the control to be painted immediately, but the Control.Invalidate method governs what gets painted when you call the Control.Update method.

For more information, see the WM_PAINT topic of the "Painting and Drawing" section in the MSDN library at http://msdn.microsoft.com/library.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0