private void searchToolStripMenuItem_Click(object sender, EventArgs e) { return; RenameDialog search = new RenameDialog(); search.Text = "Search"; search.LoadTree(treeView1); if (search.ShowDialog() == DialogResult.OK) { string NameLookup = search.textBox1.Text; } }