Ejemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     SelectForm Reg = new SelectForm();
     this.Hide();
     Reg.Owner = this;
     //让新建的窗口不在任务栏显示并显示新窗口
     Reg.ShowDialog();
     //新建的窗口关闭后,再使原窗口可见
     this.Show();
 }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            SelectForm Reg = new SelectForm();

            this.Hide();
            Reg.Owner = this;
            //让新建的窗口不在任务栏显示并显示新窗口
            Reg.ShowDialog();
            //新建的窗口关闭后,再使原窗口可见
            this.Show();
        }