Live Chat Icon For mobile
Live Chat Icon

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

Platform: WinForms| Category: Controls

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*/);
		}

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.