private void label13_Click(object sender, EventArgs e) { AdminHomePage adminHomePage = new AdminHomePage(); this.Hide(); adminHomePage.Closed += (s, args) => this.Close(); adminHomePage.Show(); }
private void LoginButton1_Click(object sender, EventArgs e) { string user_name = TextBox1.Text; passward = Textbox2.Text; if (user_name == "hafiz086" && passward == "banglades") { AdminHomePage adminhomepage = new AdminHomePage(); this.Hide(); adminhomepage.Closed += (s, args) => this.Close(); adminhomepage.Show(); } else { MessageBox.Show("Invalid User name and Passward"); } }