private void btnDashboard_Click(object sender, EventArgs e) { frmMainDashboard MainDash = new frmMainDashboard(); MainDash.Show(); this.Close(); }
private void btnCloseLogin_Click(object sender, EventArgs e) { for (int i = Application.OpenForms.Count - 1; i >= 0; i--) // Close all the current open forms { if (Application.OpenForms[i].Name == "frmFormSeparator") { Application.OpenForms[i].Close(); } } frmMainDashboard MainDash = new frmMainDashboard(); MainDash.Show(); this.Close(); }