Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
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 1:41am
Shahan Ayyub at 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 at 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 at 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 at 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
0 Sergey Alexandrovich Kryukov 370
1 DamithSL 235
2 OriginalGriff 215
3 Zoltán Zörgő 124
4 Dave Kreskowiak 120
0 OriginalGriff 7,610
1 DamithSL 5,559
2 Sergey Alexandrovich Kryukov 5,324
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539

Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2014
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