private void Initialize_Size(object sender, EventArgs e)
{
foreach (Button b in buttonarray)
this.Controls.Remove(b);
this.ClientSize -= new System.Drawing.Size(this.Width, this.Height);
this.ClientSize += new System.Drawing.Size(40 + 20 * this.Widths, 105 + 20 * this.Heights);
this.button1.Location = new System.Drawing.Point(this.ClientSize.Width / 2 - 10, 27);
this.pictureBox1.Location = new System.Drawing.Point(this.ClientSize.Width - 40, 27);
this.pictureBox2.Location = new System.Drawing.Point(this.ClientSize.Width - 27, 27);
this.pictureBox3.Location = new System.Drawing.Point(this.ClientSize.Width - 14, 27);
}
其中3个pictureBox是放时间的
{
foreach (Button b in buttonarray)
this.Controls.Remove(b);
this.ClientSize -= new System.Drawing.Size(this.Width, this.Height);
this.ClientSize += new System.Drawing.Size(40 + 20 * this.Widths, 105 + 20 * this.Heights);
this.button1.Location = new System.Drawing.Point(this.ClientSize.Width / 2 - 10, 27);
this.pictureBox1.Location = new System.Drawing.Point(this.ClientSize.Width - 40, 27);
this.pictureBox2.Location = new System.Drawing.Point(this.ClientSize.Width - 27, 27);
this.pictureBox3.Location = new System.Drawing.Point(this.ClientSize.Width - 14, 27);
}
其中3个pictureBox是放时间的
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货