Example #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            menu menu = new menu();

            menu.Show();
            Hide();
        }
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "Admin" && textBox2.Text.ToString() == "123")
     {
         menu page2 = new menu();
         page2.Show();
         Hide();
     }
     else
     {
         label4.Text = "Invalid username or password";
     }
 }