Reducing flicker and lag on forms

UncleRonin

Well-known member
Joined
Feb 28, 2006
Messages
230
Location
South Africa
Programming Experience
5-10
Im sure most people have noticed, when you have alot of controls on a form, when it is redrawn you can actually see the order that the controls are drawn and watch them being redrawn. There's a sort of lag or delay.

Now the big thing is: how can this be overcome? I have a tab page which uses visual styles and has a bunch of datagridviews on it and when the scrollbar is moved, you have to see this delay. Even with visual styles disabled the delay is evident. This looks really unprofessional and is irritating to watch since on a PC of this caliber you shouldnt see a delay... EVER! (well, not for a while at least)
 
This is not a new issue with vb.net or c# for that matter. If there are a lot of controls on a form and is a fairly heavy load on the processor then you will see problems with painting, but i suppose this would also go for any language. You can help by turning on doublebuffering but in this case i doubt the difference would be great. Best thing to do in my opinion..... Have a look at the way the form is laid out and try to reduce the amount of control that are visible at anyone time, maybe subforms etc...
 
Back
Top