private void findToolStripMenuItem_Click(object sender, EventArgs e) { Form2 frm = new Form2(richTextBox1, listBox1FindLine); frm.ShowDialog(); }