private void Btn3_6_Click(object sender, EventArgs e) { frm36 frm = new frm36(); this.Hide(); frm.ShowDialog(); this.Show(); this.BringToFront(); }
private void openAnotherForm(string form) { if (form == "3-5") { this.Hide(); frm35 frm = new frm35(txtFromDate.Text, txtToDate.Text); frm.ShowDialog(); this.Show(); btnCheckTheResult.PerformClick(); this.BringToFront(); } else { this.Hide(); frm36 frm = new frm36(txtFromDate.Text, txtToDate.Text); frm.ShowDialog(); this.Show(); btnCheckTheResult.PerformClick(); this.BringToFront(); } }