Exemple #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            Customer_Main_Menu cmm = new Customer_Main_Menu();

            cmm.Show();
            this.Hide();
        }
Exemple #2
0
        private void Login_btn_Click(object sender, EventArgs e)
        {
            try
            {
                sda = new SqlDataAdapter("select count(*) from LM_tbl where username='******' and upassword='******'", conn);
                DataTable dt = new DataTable();
                sda.Fill(dt);
                if (dt.Rows[0][0].ToString() == "1")
                {
                    Customer_Main_Menu Cmm = new Customer_Main_Menu();
                    Cmm.Show();
                    this.Hide();
                }

                else
                {
                    MessageBox.Show("Invalid UserName OR Password!");
                }
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }