Click here to Skip to main content
15,909,332 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
My windows application have 3 forms.Each have different background images.while loading these forms there is a flickering(or delay).Can i solve this problem...
Posted

Have you tried this.DoubleBuffered = true;
 
Share this answer
 
Comments
danilmanuel 7-Dec-10 12:41pm    
yes its working!!!!Thank u...
This issue could be down to the fact you're using the main thread of the application, to complete any processing that is required when your new forms are loaded.

I have had similar issues when attempting to update the value of a progress bar in real time, as the processing that was occurring was thread blocking. The visual effect was that of a flicker or shimmer. The issue was solved when I broke down the application so that it was multi-threaded. Once the processing occurred on a separate thread the progress bar updated correctly giving visual feedback.

I'm not saying that this is the issue, but from my experience, given what you have described could be the root cause.

Laurence
 
Share this answer
 

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