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); } }
private void button1_Click(object sender, EventArgs e) { BANK b = new BANK(); b.ShowDialog(); }