private void button1_Click(object sender, EventArgs e) { foreach (Form F in Application.OpenForms) { if (F.GetType() == typeof(AvailableToysInfo)) { F.BringToFront(); F.Focus(); return; } } AvailableToysInfo CI = new AvailableToysInfo(); CI.StartPosition = FormStartPosition.CenterParent; CI.Show(this); }
private void button1_Click(object sender, EventArgs e) { foreach (Form F in Application.OpenForms) { if (F.GetType() == typeof(AvailableToysInfo)) { F.BringToFront(); F.Focus(); return; } } AvailableToysInfo CI = new AvailableToysInfo(); CI.StartPosition = FormStartPosition.CenterParent; CI.Show(this); }