private void formChange() {int count = this.Controls.Count * 2 + 2; int gr1 = this.groupBox1.Controls.Count * 2 + 2; int gr2 = this.groupBox2.Controls.Count * 2 + 2;float[] factor = new float[count + gr1 + gr2]; int i = 0; factor[i++] = Size.Width; factor[i++] = Size.Height; foreach (Control ctrl in this.Controls) { factor[i++] = ctrl.Location.X / (float)Size.Width; factor[i++] = ctrl.Location.Y / (float)Size.Height; ctrl.Tag = ctrl.Size; } foreach (Control ctrl in this.groupBox1.Controls) { factor[i++] = ctrl.Location.X / (float)Size.Width; factor[i++] = ctrl.Location.Y / (float)Size.Height; ctrl.Tag = ctrl.Size; } foreach (Control ctrl in this.groupBox2.Controls) { factor[i++] = ctrl.Location.X / (float)Size.Width; factor[i++] = ctrl.Location.Y / (float)Size.Height; ctrl.Tag = ctrl.Size; }Tag = factor; } private void formChange() {int count = 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交