我有一个非模态子表单,从父表单打开.我需要将子表单居中到其父表单.我已经设置了子表单的属性CenterParent并尝试了这个:
CenterParent
Form2 f = new Form2(); f.Show(this);
但无济于事.这适用于模态形式,但非模态形式则不然.任何简单的解决方案,还是需要我通过所有数学计算来确定其位置为中心?
c# forms parent-child winforms centering
c# ×1
centering ×1
forms ×1
parent-child ×1
winforms ×1