private void searchToolStripMenuItem_Click(object sender, EventArgs e) { SearchOrReplace frm = new SearchOrReplace(dataGridView1, "Search or replace"); frm.ShowDialog(); }