private void button3_Click(object sender, EventArgs e) { Main_Menu pm = new Main_Menu(); this.Hide(); pm.Show(); }
private void button2_Click(object sender, EventArgs e) { try { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["House_of_hyderabadConnectionString"].ConnectionString); con.Open(); SqlDataAdapter sda = new SqlDataAdapter("Select Count(*) From Admin_login where username='******'and password='******'", con); DataTable dt = new DataTable(); sda.Fill(dt); if (dt.Rows[0][0].ToString() == "1") { this.Hide(); Main_Menu frm = new Main_Menu(); frm.Show(); } else { MessageBox.Show("Please check user loginid and password"); } } catch (Exception error) { MessageBox.Show(error.ToString()); } }
private void button3_Click(object sender, EventArgs e) //back { Main_Menu mm = new Main_Menu(); this.Hide(); mm.Show(); }
private void button3_Click(object sender, EventArgs e) { Main_Menu mm = new Main_Menu(); this.Hide(); mm.Show(); }