private void button1_Click(object sender, EventArgs e) { main mymain = new main(); this.Hide(); mymain.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { main mymain = new main(); mymain.Owner = this; this.Hide(); mymain.ShowDialog(); Application.ExitThread(); }
private void button1_Click(object sender, EventArgs e) { OpenDB(); SqlCommand comd1 = new SqlCommand("delete from number", sqlConn); comd1.ExecuteNonQuery(); CloseDB(); main mymain = new main(); this.Hide(); mymain.ShowDialog(); }