예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            adminmain ad = new adminmain();

            ad.Show();
        }
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "admin" && textBox2.Text == "1234")
     {
         this.Hide();
         adminmain ad = new adminmain();
         ad.Show();
     }
     else
     {
         label3.Text = "Incorrect email or password";
     }
 }