Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everybody,

I need help! I am working on a winforms project in C# and each time I tried to run the program some of the forms scintillate when showing and this is not good for my boss! I enabled the DoubleBuffered property but the problem has not resolved! Could somebody help me?
Posted
Updated 10-Dec-10 3:47am
v2
Comments
Toli Cuturicu 10-Dec-10 9:49am    
How many Controls do you have on your Form? Try reducing them or use a TabControl.
Do you have large, complex Images on your Form? Try reducing their Size or PixelDepth.
Do you use unusual styles? Simplify or remove them altogether.
#realJSOP 10-Dec-10 9:52am    
You're gonna have to be a LOT more descriptive regarding your problem... maybe even show us your code.
Steve Maier 10-Dec-10 10:43am    
Also if this is on XP, there are hotfixes for display issues.
JeanPaul MENSAH 10-Dec-10 10:50am    
i tried the solution on XP and Vista but no result! there are not many controls on the form and there is no complex images on the form, so unusual styles!
Saksida Bojan 10-Dec-10 12:44pm    
I do not understand word scintillate. So what is it?
And since You mention a DoubleBuffer, do you have a flicker problem? A DoubleBuffer is made so that drawings are done in memory and when OnPaint Method finish it draws on screen. If it was disabled, all Drawing code in OnPaint method would draw to screen imeadtly.

1 solution

Have a look at those articles. I think these can help you out:

Flicker free drawing using GDI+ and C#[^]

Drawing multiple layers without flicker[^]

Flicker Free Drawing in C#[^]

Good luck!
 
Share this answer
 
Comments
JeanPaul MENSAH 13-Dec-10 3:10am    
thanks i will check the links right now

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900