private void FrmMain_FormClosing(object sender, FormClosingEventArgs e) { this.Hide(); loginScreen login = new loginScreen(); login.Show(); }
//btn_LogOut Click event handler private void btn_LogOut_Click(object sender, EventArgs e) { this.Hide(); loginScreen login = new loginScreen(); login.Show(); }