private void sTOCKToolStripMenuItem_Click(object sender, EventArgs e) { foreach (Form f in this.MdiChildren) { if (f.GetType() == typeof(VIEW_STOCK)) { f.Activate(); return; } } Form ITEMS = new VIEW_STOCK(); ITEMS.MdiParent = this; ITEMS.Show(); }
private void button2_Click_1(object sender, EventArgs e) { foreach (Form f in this.MdiChildren) { if (f.GetType() == typeof(VIEW_STOCK)) { f.Activate(); return; } } Form room = new VIEW_STOCK(); room.MdiParent = this; room.Show(); }