private void pictureBox1_Click(object sender, EventArgs e)//This pictureBox displays "Back"
        {
            frmuser_selection frm = new frmuser_selection();

            frm.Show();
            this.Hide();
        }
예제 #2
0
        private void btnlogin_Click(object sender, EventArgs e)
        {
            string email    = txtemail.Text;
            string password = txtpassword.Text;

            if (email == "*****@*****.**" && password == "user123")
            {
                frmuser_selection us = new frmuser_selection();
                us.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Login not success.Please try again");
                txtemail.Clear();
                txtpassword.Clear();
            }
        }