按照比例缩放窗体控件及字体,如需等比例缩放,只需将x,y的比例设置成相同即可. 为了减小误差,建议使用原始尺寸来计算比例. private float X, Y; private bool b = false; public MainForm() { InitializeComponent(); X = this.Width; Y = this.Height; SetTag(this); b = true; } protected override void OnSizeChanged(Even…