Click here to Skip to main content
Click here to Skip to main content

Flicker free Form Painting

By , 23 Sep 2010
 
Recently i had found a solution for flicker free form loading in my project. Please use the following in designer class file.
 
protected override CreateParams CreateParams {
      get {
        CreateParams cp = base.CreateParams;
        cp.ExStyle |= 0x02000000;
        return cp;
      }
    }
 
To see it at work, minimize and restore the form and observe its painting behavior. Comment the cp.ExStyle assignment to see the difference. All you have to do to use this in your own form is to copy and paste the CreateParams property.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Syed Shabeer
Software Developer Rifluxyss softwares(P) Ltd
India India
Member
A Software programmer in Rifluxyss Softwares(P) Ltd situated in Chennai. Works on VB.NET, C#, .NET Compact framework, SSIS, SQL Server, Sharepoint, PHP. Other than that likes to play games in PC.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralReason for my vote of 5 this post work among all the solutio...memberJeanPaul MENSAH12 Feb '11 - 5:50 
GeneralThanks a lot! i have been looking for this for 6 months ago!...memberJeanPaul MENSAH12 Feb '11 - 5:46 
GeneralReason for my vote of 3 Ok, but a minimal explanation would ...memberToli Cuturicu11 Oct '10 - 11:35 
QuestionA Questionmemberjohannesnestler24 Sep '10 - 2:27 
AnswerRe: A Questionmemberjohannesnestler5 Oct '10 - 5:03 
GeneralGeneral Info [modified]memberSilic0re0923 Sep '10 - 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 23 Sep 2010
Article Copyright 2010 by Syed Shabeer
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid