Skip to content

Instantly share code, notes, and snippets.

@riyadparvez
Created December 31, 2012 12:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riyadparvez/4419562 to your computer and use it in GitHub Desktop.
Save riyadparvez/4419562 to your computer and use it in GitHub Desktop.
Add this code snippet into your form or control class to stop flickering in winform
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000;
return cp;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment