private static Form2 f2=null;

 private static Form3 f3 = null;

private void button1_Click(object sender, EventArgs e)

        {
            if (f3 != null)
            {
                f3.Hide();
            }
            if (f2== null)
            {
                f2 = new Form2();
                f2.TopLevel = false;
                f2.Parent = this.panel3;
                f2.Show();
            }
            else
            {
                f2.TopLevel = false;
                f2.Parent = this.panel3;
                f2.Show();
            }
        }

相关文章:

  • 2021-08-08
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-18
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2022-01-21
  • 2021-09-02
相关资源
相似解决方案