private static Form_LookBooks form_LookBooks;//局部变量 private void 图书查询CToolStripMenuItem_Click(object sender, EventArgs e) { if (form_LookBooks == null || form_LookBooks.IsDisposed) {//假如子窗体未被创建或已被释放,打开 form_LookBooks = new Form_LookBooks( ); form_LookBooks.MdiParent = this; form_LookBooks.Show(); } else { form_LookBooks.Activate();//否则激活 } }