public void InvDrCPW() { Doctor.DrCPW drCPW = new Doctor.DrCPW(); drCPW.Visible = false; drCPW.StartPosition = FormStartPosition.CenterScreen; drCPW.MaximizeBox = false; drCPW.MinimizeBox = false; //showing form as modal drCPW.ShowDialog(); }
private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e) { Doctor.DrCPW drCPW = new Doctor.DrCPW(); drCPW.Visible = false; drCPW.StartPosition = FormStartPosition.CenterScreen; drCPW.MaximizeBox = false; drCPW.MinimizeBox = false; drCPW.FormBorderStyle = FormBorderStyle.Fixed3D; drCPW.BackColor = Color.AliceBlue; //showing form as modal drCPW.ShowDialog(); }