private void button2_Click(object sender, EventArgs e) { using (var f = new FormSearch()) { f.ShowDialog(this); } }