private void registrationToolStripMenuItem_Click(object sender, EventArgs e) { frm_reg p7 = new frm_reg(); //p7.MdiParent = this; p7.ShowDialog(); }
private void btn_login_Click(object sender, EventArgs e) { { if (txt_username.Text == "admin" && txt_password.Text == "123") { MessageBox.Show("Login sucessfully"); frm_reg f = new frm_reg(); f.Show(); this.Hide(); } else { MessageBox.Show("Wrong password"); } } }