Exemple #1
0
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            this.Hide();
            Employe_page epf = new Employe_page();

            epf.Show();
        }
Exemple #2
0
        private void label5_Click(object sender, EventArgs e)
        {
            SqlDataAdapter sda = new SqlDataAdapter("select Count(*)  From Employee where UserName = '******' and _Password = '******'", con);
            DataTable      dt  = new DataTable();

            sda.Fill(dt);
            if (dt.Rows[0][0].ToString() == "1")
            {
                MessageBox.Show("You have  Successfully Login!, Welcome ", "Message", MessageBoxButtons.OK, MessageBoxIcon.None);
                this.Close();
                Employe_page epf = new Employe_page();
                epf.Show();
            }
            else
            {
                MessageBox.Show("Please Check Your Username and Password", "Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }