コード例 #1
0
        private void btnHaupt_Click(object sender, EventArgs e)
        {
            Haupt frmHaupt = new Haupt();
            frmHaupt.Show();

            this.Hide();
        }
コード例 #2
0
 private void Termin_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (Program.frmHaupt == null)
     {
         Haupt frmHaupt = new Haupt();
         Program.frmHaupt = frmHaupt;
         frmHaupt.Show();
     }
 }