protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            using (AutoGrow autoGrow = new AutoGrow(this, AnchorStyles.Right, false))
            {
                autoGrow.AllowAnchoring = true;

                cellPropertiesControl.AdjustSize();
                LayoutHelper.FixupOKCancel(buttonOK, buttonCancel);
            }
        }
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            using (AutoGrow autoGrow = new AutoGrow(this, AnchorStyles.Right, false))
            {
                autoGrow.AllowAnchoring = true;

                using (new AutoGrow(groupBoxHeight, AnchorStyles.Right, false))
                {
                    DisplayHelper.AutoFitSystemRadioButton(radioButtonFixedHeight, 0, int.MaxValue);
                    DisplayHelper.AutoFitSystemRadioButton(radioButtonSizeToContent, 0, int.MaxValue);
                }

                cellPropertiesControl.AdjustSize();

                cellPropertiesControl.Width = groupBoxHeight.Width = Math.Max(cellPropertiesControl.Width, groupBoxHeight.Width);
            }
            LayoutHelper.FixupOKCancel(buttonOK, buttonCancel);
        }
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Label[] leftLabels = { label1, label2, label8, label7, label12, label11 };
            NumericUpDown[] values = { numericSmallWidth, numericSmallHeight, numericMediumWidth, numericMediumHeight, numericLargeWidth, numericLargeHeight };
            Label[] rightLabels = { label3, label4, label6, label5, label10, label9 };

            using (AutoGrow autoGrow = new AutoGrow(this, AnchorStyles.Right, false))
            {
                autoGrow.AllowAnchoring = true;

                int deltaX = LayoutHelper.AutoFitLabels(leftLabels);
                new ControlGroup(values).Left += deltaX;
                new ControlGroup(rightLabels).Left += deltaX;
                LayoutHelper.AutoFitLabels(rightLabels);

                LayoutHelper.FixupOKCancel(buttonOK, buttonCancel);
            }
        }