How to update 10 lables then redraw?

J

John

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
 
M

Morten Wennevik [C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top