111,088
社区成员




private void button5_Click(object sender, EventArgs e)
{
MessageBox.Show("Test");
if (this.groupBox1.Parent.Name == "temp")
{
((Form)this.groupBox1.Parent).Close();
this.Show();
}
}
private void button6_Click(object sender, EventArgs e)
{
var old = this.groupBox1.Bounds;
Form form = new Form();
form.Name = "temp";
this.groupBox1.Bounds = new Rectangle(8, 0, this.groupBox1.Width, this.groupBox1.Height);
form.Controls.Add(this.groupBox1);
form.Width = this.groupBox1.Width+30;
form.Height = this.groupBox1.Height+50;
this.Hide();
form.ShowDialog();
this.groupBox1.Bounds = old;
this.Controls.Add(this.groupBox1);
}