Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have some child controls. As I'm updating the text in all the controls in a For...Each loop then I don't want this cascade of events to happen for every time I update each control in the loop.

I want it to happen once after I've updated ALL the controls.Is it possible?

Thanks.
Posted
Updated 22-Jul-10 21:01pm
v2
Comments
Scubapro 23-Jul-10 2:49am    
If you use a codeblock then use it to show your code!
Do not to put your question in it!

1 solution

You where so close!!! :) The function before entering this loop would be the
TheForm.SuspendLayout(); 

and when the loop is done you call (after the Next statement)
TheForm.ResumeLayout();


Good luck!
 
Share this answer
 
v2

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