private void btnEnter_Click(object sender, EventArgs e) { Form form = new frmUserDetails(ParentForm); form.Show(); Hide(); }
private void btn1_Click(object sender, EventArgs e) { Hide(); frmUserDetails copyOfForm2 = new frmUserDetails(this); copyOfForm2.Show(); }
private void btnMainMenu_Click(object sender, EventArgs e) { frmUserDetails myForm = (frmUserDetails)Application.OpenForms["Form1"]; myForm.Show(); this.Close(); }