Click here to Skip to main content
11,920,156 members (58,513 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


2 bookmarked

Flicker free Form Painting

, 23 Sep 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
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.


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
India India
A Software programmer. Works on ASP.NET, MVC, VB.NET, C#, .NET Compact framework, SSIS, SQL Server, PHP and its frameworks. Other than that likes to play games in PC.

You may also be interested in...

Comments and Discussions

GeneralReason for my vote of 5 this post work among all the solutio... Pin
JeanPaul MENSAH12-Feb-11 6:50
memberJeanPaul MENSAH12-Feb-11 6:50 
Reason for my vote of 5
this post work among all the solutions i have on the subject for almost 6 months
GeneralThanks a lot! i have been looking for this for 6 months ago!... Pin
JeanPaul MENSAH12-Feb-11 6:46
memberJeanPaul MENSAH12-Feb-11 6:46 
GeneralReason for my vote of 3 Ok, but a minimal explanation would ... Pin
Toli Cuturicu11-Oct-10 12:35
memberToli Cuturicu11-Oct-10 12:35 
QuestionA Question Pin
johannesnestler24-Sep-10 3:27
memberjohannesnestler24-Sep-10 3:27 
AnswerRe: A Question Pin
johannesnestler5-Oct-10 6:03
memberjohannesnestler5-Oct-10 6:03 
GeneralGeneral Info [modified] Pin
Silic0re0923-Sep-10 5:02
memberSilic0re0923-Sep-10 5:02 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

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