private void logoutToolStripMenuItem_Click(object sender, EventArgs e) { login1 l = new login1(); l.MdiParent = this.MdiParent; l.Show(); }
private void button1_Click(object sender, EventArgs e) { try { if (label4.Text == w) { login1 l = new login1(); BANK d = new BANK(); this.Hide(); ActiveForm.MainMenuStrip.Items.Clear(); welcome1 y = new welcome1(); y.MdiParent = this.MdiParent; y.Show(); this.Close(); } else { ss.Speak("invalid id or password"); MessageBox.Show("invalid id or password"); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void editMenu_Click(object sender, EventArgs e) { login1 l = new login1(); l.MdiParent = this; l.Show(); r++; }