Example #1
0
        private void Backbutton_Click(object sender, EventArgs e)
        {
            ManagerEntryForm mf = new ManagerEntryForm();

            mf.Show();
            this.Hide();
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            ManagerEntryForm mef = new ManagerEntryForm();

            mef.Show();
            this.Hide();
        }
Example #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            ManagerEntryForm mf = new ManagerEntryForm();

            SqlDataAdapter da = new SqlDataAdapter("select * from User_table where UserName='******' and Password='******' ", con);
            DataTable      dt = new DataTable();

            da.Fill(dt);
            if (dt.Rows.Count == 1)
            {
                mf.Show();
                this.Hide();
            }

            else
            {
                MessageBox.Show("Error !!! : wrong username or password");
            }
        }