private void button3_Click(object sender, EventArgs e) { this.Hide(); Form obj1 = new insertactor(); obj1.Show(); }
private void button1_Click(object sender, EventArgs e) { if (aName.Text == "" || aNation.Text == "" || mCheck.Checked == false && sCheck.Checked == false) { MessageBox.Show("Empty field", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { try { if (mCheck.Checked == true) { } else if (sCheck.Checked == true) { } else { } DialogResult d; d = MessageBox.Show("Record Entered successfully\nwould you like to Insert one more record?", "Success", MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (d == DialogResult.Yes) { Close(); Form obj1 = new insertactor(); obj1.Show(); } else { Close(); Form obj1 = new insertmain(); obj1.Show(); } } catch { MessageBox.Show("Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }