private void Form1_Load(object sender, EventArgs e) { foreach (MdiClient client in Controls.OfType<MdiClient>()) { client.BackColor = Color.White; break; } FrmLogin frm = new FrmLogin(); frm.ShowDialog(); }
private void btnUpdatePassword_Click(object sender, EventArgs e) { if ((lblMessage.Visible) || (lblConfirmPassword.Visible) || (lblOldPassword.Visible)) { btnUpdatePassword.Enabled = true; } obj_mdlChangePassword.oldPassword = txtOldPassword.Text; obj_mdlChangePassword.newPassword = txtNewPassword.Text; obj_mdlChangePassword.userID = GlobalVar.g_UserID; if (obj_bllUserSecurity.changePassword(obj_mdlChangePassword) == true) { MessageBox.Show("Password successfully changed", "BMC ERP", MessageBoxButtons.OK, MessageBoxIcon.Information); FrmLogin login = new FrmLogin(); login.Show(); this.Hide(); } else { MessageBox.Show("Wrong Password", "BMC ERP", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void frmMain1_Load(object sender, EventArgs e) { foreach (Control cont in Controls) { MdiClient client = cont as MdiClient; if (client != null) { client.BackColor = Color.White; break; } } FrmLogin frm = new FrmLogin(); frm.ShowDialog(); UserCustomizedMenu(); }
private void btnBackToLogin_Click(object sender, EventArgs e) { FrmLogin login = new FrmLogin(); login.Show(); this.Hide(); }