Skip to content

Instantly share code, notes, and snippets.

@tormodfj
Created November 21, 2012 07:27
Show Gist options
  • Save tormodfj/4123585 to your computer and use it in GitHub Desktop.
Save tormodfj/4123585 to your computer and use it in GitHub Desktop.
WS_EX_COMPOSITED in Windows Forms
protected override CreateParams CreateParams
{
get
{
var @params = base.CreateParams;
// WS_EX_COMPOSITED (0x02000000L)
// Paints all descendants of a window in bottom-to-top painting order using double-buffering.
// Ref.: http://msdn.microsoft.com/en-us/library/windows/desktop/ff700543.aspx
@params.ExStyle |= 0x02000000;
return @params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment