/// <summary> /// todoComment /// </summary> /// <param name="AFormName"></param> /// <returns></returns> public Boolean ShowForm(String AFormName) { Boolean ReturnValue; System.Windows.Forms.Form TheForm; // MessageBox.Show('TFormsList.ShowForm called for Form named ''' + AFormName + ''''); TheForm = this[AFormName]; if (TheForm != null) { // MessageBox.Show('TFormsList.ShowForm: found Form, now activing it.'); TheForm.Visible = true; TheForm.WindowState = FormWindowState.Normal; TheForm.Activate(); ReturnValue = true; } else { // MessageBox.Show('TFormsList.ShowForm: Form NOT found!'); ReturnValue = false; } return(ReturnValue); }
private void MaximizeForm() { if (TheForm.WindowState == FormWindowState.Minimized) { TheForm.Show(); TheForm.Activate(); TheForm.WindowState = FormWindowState.Normal; TheForm.ShowInTaskbar = true; } }
public static Show(Form mdiParent) { if (Instance == null) { // Create new form, assign it to Instance } else { Instance.Activate(); // Not sure about this line, find the appropriate equivalent yourself. } }