what do those functions exactly do? do they kinda suspend the update of control events and stuff?
I'm adding a whole bunch of controls dynamically and I'm wondering if I should call SuspendLayout before adding the controls.
Printable View
what do those functions exactly do? do they kinda suspend the update of control events and stuff?
I'm adding a whole bunch of controls dynamically and I'm wondering if I should call SuspendLayout before adding the controls.
From "Professional VB.NET" - Wrox Press
SuspendLayout "stops the layout engine of the form from working." P 64
ResumeLayout "turns the layout logic of the form back on." P65
-----------------------
As for needing to do it when adding controls dynamically, I can't find it used in any book other than in the form code where the form is initially created, so I don't think it's necessary.
TG