private void ShowFormDBSetting() { #region Show Form DBSetting foreach (Form form in Application.OpenForms) { if (form.GetType() == typeof(FormDBSetting)) { form.WindowState = FormWindowState.Normal; form.BringToFront(); form.Focus(); return; } } FormDBSetting formDBSetting = new FormDBSetting { MdiParent = this }; formDBSetting.Show(); formDBSetting.Activate(); formDBSetting.Focus(); #endregion Show Form DBSetting }
public FormDBSetting() { InitializeComponent(); Forms = this; FormDashBoard.Forms.ToolStripSettingDataBase.ForeColor = Color.DarkGreen; }