private void toolStripButton3_Click(object sender, EventArgs e) { foreach (Form item in Application.OpenForms) { if (item is SearchPO) { item.Activate(); return; } } SearchPO Pos = new SearchPO { MdiParent = this }; Pos.Show(); }
/// <summary> /// The PurchaseOrders_FormClosing /// </summary> /// <param name="sender">The sender<see cref="object"/></param> /// <param name="e">The e<see cref="FormClosingEventArgs"/></param> private void PurchaseOrders_FormClosing(object sender, FormClosingEventArgs e) { SearchPO.UnhideForm(); }
public SearchPO() { InitializeComponent(); thisForm = this; }