private void Backbutton_Click(object sender, EventArgs e) { ManagerEntryForm mf = new ManagerEntryForm(); mf.Show(); this.Hide(); }
private void button2_Click(object sender, EventArgs e) { ManagerEntryForm mef = new ManagerEntryForm(); mef.Show(); this.Hide(); }
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"); } }