Executes any pending requests for painting.
There are two ways to repaint a form and its contents:
You can use one of the overloads of the Control.Invalidate method with the Control.Update method.
You can call the Control.Refresh method, which forces the control to redraw itself and all its children. This is equivalent to setting the Control.Invalidate(bool) method to true and using it with Control.Update.
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.