Connecting Tech Pros Worldwide Help | Site Map

How to update 10 lables then redraw?

John
Guest
 
Posts: n/a
#1: Jul 18 '07

Hi there

I've got a form that when the cursor hovers over an image I update 10
labels to show different numbers. At the moment the form is redrawing each
time I update one label, this means it redraws 10 times giving the update
a staggered look. What I would like to do is update all the labels without
redrawing, then once they are all ready redraw the rectangle they are in.
Does anyone have any pointers of how I can do this?

Many thanks,
John
Morten Wennevik [C# MVP]
Guest
 
Posts: n/a
#2: Jul 18 '07

re: How to update 10 lables then redraw?


On Wed, 18 Jul 2007 13:54:28 +0200, John <John@nospam.comwrote:
Quote:
>
Hi there
>
I've got a form that when the cursor hovers over an image I update 10
labels to show different numbers. At the moment the form is redrawing each
time I update one label, this means it redraws 10 times giving the update
a staggered look. What I would like to do is update all the labels without
redrawing, then once they are all ready redraw the rectangle they are in.
Does anyone have any pointers of how I can do this?
>
Many thanks,
John
>
Hi John,

Try setting the DoubleBuffered property on the labels and/or the parent.

--
Happy coding!
Morten Wennevik [C# MVP]
Closed Thread