Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "admin" && textBox2.Text == "admin")
     {
         MessageBox.Show("Welcome");
         this.Hide();
         home l1 = new home();
         l1.Show();
     }
     else
     {
         MessageBox.Show("invalid user");
         textBox1.Text = "";
         textBox2.Text = "";
     }
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     //Administrator Login code without database
     if (textBox1.Text == "admin" && textBox2.Text == "admin")
     {
         MessageBox.Show("Welcome");
         this.Hide(); // it will hide current form
         home l1 = new home(); // to distplay the next page
         l1.Show();
     }
     else
     {
         MessageBox.Show("invalid user");
         textBox1.Text = "";
         textBox2.Text = "";
     }
 }
Esempio n. 3
0
 private void button4_Click(object sender, EventArgs e)
 {
     timer1.Enabled = false;
     timer1.Stop();
     this.Hide();
     home h = new home();
     h.Show();
 }