private void gunaButton1_Click(object sender, EventArgs e) { this.Hide(); dashboardForm dash = new dashboardForm(); dash.Show(); }
private void btnLogin_Click(object sender, EventArgs e) { if (txtUsername.Text == "laiba" && txtPassword.Text == "5555") { txtforgot.Visible = false; dashboardForm form3 = new dashboardForm(); this.Hide(); form3.Show(); } else { txtforgot.Visible = true; txtPassword.Clear(); } }