Click here to Skip to main content
13,197,804 members (41,081 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am making an application in 2012.
I have used split container, table layout panel and panels as container in my form.
I also have buttons, text boxes, tool strip,status strip,combo box, list view etc
the problem is when i load the form it flickers a lot. also when the list view columns width is changed while populating the list view it flickers and which doesn't look good. I have tried few solutions
1) i have set double buffered property to true
2) no container back color is transparent
3) to prevent flicker while loading i used suspendlayout() and resumelayout()

But it just reduced flicker a bit, its not completely gone.

Note: I have added images in table layout
Posted 4-Oct-12 0:41am
Shahan Ayyub 5-Oct-12 7:44am
Have you used Application.DoEvents() some where ? or are you using loop to load something ? Does it flicker continues unless you close app or it flickers for some amount of time then becomes stationary ?
xrndMember 8-Oct-12 23:22pm
It flickers for a while loading for the first time. Nope,I haven't written any DoEvents() and yeah in some forms there are loops running on form loading. Can it cause so much flicker, i assumed only form controls can cause flicker.
But i have images in containers.
Shahan Ayyub 9-Oct-12 1:39am
>>Can it cause so much flicker
Yes it can. It is never recommended to load large amount of data on form load. May be loading too many pictures at Form_load causing this issue. Have you tried Form_Shown event ? or Have you tried using Application.DoEvents() ?
xrndMember 12-Oct-12 2:50am
Nope.i Don't know what is Applications.DoEvents(). Can it help reduce flicker.??

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171020.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100