Serialcoder en Français Serialcoder in English
TEL : +33 (0)9 72 13 15 17

Windows Forms FAQ resources

2. Windows Forms Controls

2.10 How do I invalidate a control including it's NonClient area?


You can do so as follows in your Control:


          private void InvalidateWindow()
          {
               NativeMethods.RedrawWindow(this.Handle, IntPtr.Zero, IntPtr.Zero,
                    0x0400/*RDW_FRAME*/ | 0x0100/*RDW_UPDATENOW*/
                    | 0x0001/*RDW_INVALIDATE*/);
          }