Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am making an application in vb.net 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
Comments
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)



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