private void btnUnlock1_Click(object sender, EventArgs e) { this.ParentForm.Hide(); frmUnlock form = new frmUnlock(); //this.Hide(); form.ShowDialog(); this.ParentForm.Close(); }
private void btnUnlock_Click(object sender, EventArgs e) { Cursor = Cursors.WaitCursor; frmUnlock form = new frmUnlock(); this.Hide(); form.ShowDialog(); Cursor = Cursors.Default; if (this.ParentForm != null) { this.ParentForm.Close(); } }