コード例 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     homeForm frm = new homeForm();
     this.Hide();
     frm.ShowDialog();
     this.Close();
 }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                asyncSource.Stop();
                timer1.Stop();
            }
            catch
            {
            }

            homeForm frm = new homeForm();
            this.Hide();
            frm.ShowDialog();
            this.Close();
        }