private void test2ToolStripMenuItem_Click(object sender, EventArgs e) { if (!FormExist("frm2")) { frm2 test = new frm2(); test.Show(dockPanel); } }