private void removeall_Click(object sender, EventArgs e)
        {
            Usermenupage mp = new Usermenupage();

            mp.Show();
            this.Hide();
        }
        private void back_Click(object sender, EventArgs e)
        {
            conn.Open();
            SqlCommand cmd = new SqlCommand("delete from table_5", conn);

            cmd.ExecuteNonQuery();
            SqlCommand cmad = new SqlCommand("delete from table_6", conn);

            cmad.ExecuteNonQuery();
            conn.Close();
            Usermenupage up = new Usermenupage();

            up.Show();
            this.Hide();
        }
Exemple #3
0
        private void login_Click(object sender, EventArgs e)
        {
            check chk      = new check();
            bool  logcheck = chk.login(user.Text, pass.Text);

            if (logcheck == true)
            {
                MessageBox.Show("You are Logged In");
                Usermenupage fm = new Usermenupage();
                fm.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Username or Password is Incorrect !!");
            }
        }