private void btn_Select_Click(object sender, EventArgs e) { this.Visible = false; SelectForm dlgSelect = new SelectForm(this); dlgSelect.ShowDialog(); if (dlgSelect.DialogResult == DialogResult.OK) { this.Visible = true; } else if (dlgSelect.DialogResult == DialogResult.Cancel) { this.Visible = true; } }
public SelectDeleteForm(SelectForm form) { InitializeComponent(); this.selectForm = form; }