private void accountSettingToolStripMenuItem_Click(object sender, EventArgs e) { CloseAllOpenedChildForm(); frmAccountSetting objAccountSetting = new frmAccountSetting(rollFKey, cId); objAccountSetting.MdiParent = this; objAccountSetting.Show(); objAccountSetting.WindowState = FormWindowState.Minimized; objAccountSetting.WindowState = FormWindowState.Maximized; }
private void accountSettingMenu_Click(object sender, EventArgs e) { try { CloseAllOpenedChildForm(); frmAccountSetting objAccountSetting = new frmAccountSetting(rollFKey, cId); objAccountSetting.MdiParent = this; objAccountSetting.Show(); objAccountSetting.WindowState = FormWindowState.Minimized; objAccountSetting.WindowState = FormWindowState.Maximized; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString(), "accountSettingMenu_Click", MessageBoxButtons.OK, MessageBoxIcon.Error); } }