Assembly: System.Windows.Forms (in system.windows.forms.dll)
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 Invalidate method with the Update method.
The Invalidate method governs what gets painted or repainted. The Update method governs when the painting or repainting occurs. If you use the Invalidate and Update methods together rather than calling Refresh, what gets repainted depends on which overload of Invalidate you use. The Update method just forces the control to be painted immediately, but the Invalidate method governs what gets painted when you call the Update method.
For more information, see the WM_PAINT topic of the "Painting and Drawing" section of the Platform SDK documentation in the MSDN library at http://msdn.microsoft.com/library.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.