private void ChangePassword_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { this.Hide(); //Form.ActiveForm.SendToBack(); studentWorks.SendToBack(); //Form.ActiveForm.SendToBack(); ChangePass chpass = new ChangePass(numStudent, studentWorks); chpass.Show(); chpass.BringToFront(); studentWorks.Activate(); Form.ActiveForm.SendToBack(); //this.Opacity -= .03; //if (this.Opacity == 0) // this.Hide(); } else { this.Hide(); } }
private void сменитьПарольToolStripMenuItem_Click(object sender, EventArgs e) { ChangePass chpass = new ChangePass(numStudent,this); chpass.Show(); }