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); }