Causes the control to redraw the invalidated regions within its client area.
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 method.
The Invalidate method governs what gets painted or repainted. The method governs when the painting or repainting occurs. If you use the Invalidate and methods together rather than calling Refresh, what gets repainted depends on which overload of Invalidate you use. The method just forces the control to be painted immediately, but the Invalidate method governs what gets painted when you call the 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.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.