private void OptionsButton_Click(object sender, EventArgs e) { OptionsForm optionsForm = Application.OpenForms["OptionsForm"] as OptionsForm; if (optionsForm != null) { optionsForm.Focus(); return; } optionsForm = new OptionsForm(); optionsForm.Show(this); }
private void button4_Click(object sender, EventArgs e) { OptionsForm form = new OptionsForm(); form.Show(); }