private void OnGroupPanelPaint(object sender, NeedLayoutEventArgs e)
{
// If the child panel is layout out but not because we are, then it must be
// laying out because a child has changed visibility/size/etc. If we are an
// AutoSize control then we need to ensure we layout as well to change size.
if (e.NeedLayout && !_layingOut && AutoSize)
PerformNeedPaint(true);
}