private void btn_select(object o, EventArgs e) { Button btn = (Button)o; switch (btn.Name) { case "btn1": Form_User user = new Form_User(); this.Visible = false; user.Show(); break; case "btn2": Form_login log = new Form_login(); this.Visible = false; log.Show(); break; } }
private void Form_associateMenu_FormClosed(object sender, FormClosedEventArgs e) { Form_login parent = (Form_login)this.Owner; parent.Show(); }