protected void ForceControlLayout()
{
// Usually the layout will not occur if currently initializing but
// we need to force the layout processing because overwise the size
// of the panel controls will not have been calculated when controls
// are added to the panels. That would then cause problems with
// anchor controls as they would then resize incorrectly.
if (!IsInitialized)
{
_forcedLayout = true;
OnLayout(new LayoutEventArgs(null, null));
_forcedLayout = true;
}
}