Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }